D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] shell programming continuued

 

On Saturday 28 May 2005 20:21, PAUL SUTTON wrote:
Hi

/#/bin/bash/
*echo* "please enter file name (source):"
*read* name
/#compile user specified c source file in to a object file (file.o)/
*cc* -c $name 
*ls* -l
*echo* "please enter filename (final binary name):"
*read* binary
/#compile object code into final binary - binary objectname.o/
*cc* -o $binary $binary.o
/#display long directory listings, with file permissions displayed, /
/#ls -l $name $binary/


Isn't this just the job of a makefile? or is the purpose to try out shell 
scripting?


-- 
Robin Cornelius
---------------------------------------------------
robin@xxxxxxxxxxxxxxxxxxxxx
http://www.cornelius.demon.co.uk
http://sourceforge.net/projects/rt2400
GPG Key ID: 0x729A79A23B7EE764
http://www.biglumber.com/x/web?qs=0x729A79A23B7EE764

Attachment: pgp2mPR6URWjK.pgp
Description: PGP signature