i code, compile, , run lot of test scripts through terminal using gcc , find myself typing following lot:
code:
cd /users/me/desktop gcc test.c
and, assuming compiles correctly...
is there way can make little program sits on desktop runs of through terminal 1 click?
i'm hoping it's easy batch file can make few lines in notepad.
if name of compiled file same make shell script , make executable can double click desktop.
create complile.sh (or .command) text document on desktop with:
code:
!#/bin/sh gcc ~/desktop/test.c -o ~/desktop/test.out ~/desktop/test.out
then set executable (chmod 755 ~/desktop/test.out) , make sure it's set open terminal.app can double click when need compile.
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment