🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.apple2.gno
5 messages
5 total messages Started by Mudit P Vats Wed, 06 Jan 1993 17:03
ORCA SRC filetype conversion.
#447
Author: Mudit P Vats
Date: Wed, 06 Jan 1993 17:03
13 lines
1129 bytes
Ok, this is the situation : I am using MicroEmacs to create a C program. NOW,
when I go to compile it, I get the error 'LANGUAGE NOT AVAILABLE'. SO,  I 
changed the filetype of the program from TXT to SRC using an NDA that I have.
There after that it compiled allright.

My question is : Is there anyway one can set the default filetype for creating
and saving files to filetype SRC ??? it is a real pain to change the filetype.

-- 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 e-mail : mvats@magnus.acs.ohio-state.edu    Mudit P. Vats   CIS Eng  <OSU>
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Re: ORCA SRC filetype conversion.
#450
Author: Phillip Vandry
Date: Wed, 06 Jan 1993 22:35
25 lines
1586 bytes
mvats@magnus.acs.ohio-state.edu (Mudit P Vats) writes:

>Ok, this is the situation : I am using MicroEmacs to create a C program. NOW,
>when I go to compile it, I get the error 'LANGUAGE NOT AVAILABLE'. SO,  I 
>changed the filetype of the program from TXT to SRC using an NDA that I have.
>There after that it compiled allright.

It would probably be a lot easier if you just used chmod to change the
filetype...

>My question is : Is there anyway one can set the default filetype for creating
>and saving files to filetype SRC ??? it is a real pain to change the filetype.

No.

It's not that hard anyway. You only have to do it once...

I think you can use Soenke Brehns's (Sorry if I got the spelling wrong) cc   
utility which doesn't care what the filetype is as long as it ends with .c or
.cc.
 ______________________________________________________________________
|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~|
| Phillip Vandry | Vandry@Cam.Org | II the future! | II 1993!          |
|________________|________________|________________|___________________|
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: ORCA SRC filetype conversion.
#451
Author: James L. Brookes
Date: Thu, 07 Jan 1993 08:00
25 lines
1680 bytes
In article <C0GEqC.FrH@CAM.ORG> vandry@CAM.ORG (Phillip Vandry) writes:
>mvats@magnus.acs.ohio-state.edu (Mudit P Vats) writes:
>
>>Ok, this is the situation : I am using MicroEmacs to create a C program. NOW,
>>when I go to compile it, I get the error 'LANGUAGE NOT AVAILABLE'. SO,  I 
>>changed the filetype of the program from TXT to SRC using an NDA that I have.
>>There after that it compiled allright.
>
>It would probably be a lot easier if you just used chmod to change the
>filetype...

No no, chmod doesn't handle that under GNO.  You want to use chtyp instead,
as there is no excutable permission bit in the ProDOS permissions field.

chtyp -lexec or chtyp -t SRC -a \$0006 will do the trick for you...

>| Phillip Vandry | Vandry@Cam.Org | II the future! | II 1993!          |
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-- 
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|          James Brookes            | Inet: bb252@cleveland.freenet.edu |
|``What, me worry?'' - A. E. Neuman |   jamesb@cscihp.ecst.csuchico.edu |
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Re: ORCA SRC filetype conversion.
#452
Author: Kevin Henigan
Date: Thu, 07 Jan 1993 13:51
34 lines
1992 bytes
In article <1ignuuINNhb@charnel.ecst.csuchico.edu> jamesb@ecst.csuchico.edu (James L. Brookes) writes:
]In article <C0GEqC.FrH@CAM.ORG> vandry@CAM.ORG (Phillip Vandry) writes:
]>mvats@magnus.acs.ohio-state.edu (Mudit P Vats) writes:
]>
]>>Ok, this is the situation : I am using MicroEmacs to create a C program. NOW,
]>>when I go to compile it, I get the error 'LANGUAGE NOT AVAILABLE'. SO,  I 
]>>changed the filetype of the program from TXT to SRC using an NDA that I have.
]>>There after that it compiled allright.
]>
]>It would probably be a lot easier if you just used chmod to change the
]>filetype...
]
]No no, chmod doesn't handle that under GNO.  You want to use chtyp instead,
]as there is no excutable permission bit in the ProDOS permissions field.
]
]chtyp -lexec or chtyp -t SRC -a \$0006 will do the trick for you...

or even 

chtyp -lcc  <file>     - the original question was about creating
                                      and compiling C files


]>| Phillip Vandry | Vandry@Cam.Org | II the future! | II 1993!          |

]|          James Brookes            | Inet: bb252@cleveland.freenet.edu |
]|``What, me worry?'' - A. E. Neuman |   jamesb@cscihp.ecst.csuchico.edu |


-- 
 Kevin Henigan. UUCP:     {backbone}!unido!quando!henigan OR henigan@quando.uucp
  Quantum GmbH  Bitnet:   henigan%quando@UNIDO(.bitnet)
    Dortmund    internet: henigan@quantum.de, or henigan@quando.quantum.de
    Germany     advert  : PEDIGREE - the only genealogy IIGS prog with a GUI
Re: ORCA SRC filetype conversion.
#454
Author: Phillip Vandry
Date: Thu, 07 Jan 1993 18:43
19 lines
1453 bytes
jamesb@ecst.csuchico.edu (James L. Brookes) writes:

>No no, chmod doesn't handle that under GNO.  You want to use chtyp instead,
>as there is no excutable permission bit in the ProDOS permissions field.

Oops! I meant to say chtyp.. :)

>chtyp -lexec or chtyp -t SRC -a \$0006 will do the trick for you...
         ~~~~
         I can't use -lexec. Maybe I have an old chtyp or something, but I
         checked the source and exec isn't in the language table. I'm stuck
         using the second form. Is there a newer version?

>|          James Brookes            | Inet: bb252@cleveland.freenet.edu |
 ______________________________________________________________________
|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~|
| Phillip Vandry | Vandry@Cam.Org | II the future! | II 1993!          |
|________________|________________|________________|___________________|
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads