takes one or more .l files and compiles them
#!/usr/bin/csh
#while loop to carry on asking user to enter the files
while $number!=0
echo "enter file name"
#check to see if file ends with .l
#if file ends with .l compile lexx.yy.c file for each file
this is how i think it needs to be done but im not sure?????
can ne1 help me
this is what i've come up with am gettign errors
#!/bin/csh
while read -a lfiles -p "Enter files to process:"; do
for file in "${lfiles[@]}";do
if[ "${file##*.}" == "l" ];then
# Place your compilation procedure
cc -o "${file##*.}" lex.yy.c -ll
fi
done
done
#!/usr/bin/csh
#while loop to carry on asking user to enter the files
while $number!=0
echo "enter file name"
#check to see if file ends with .l
#if file ends with .l compile lexx.yy.c file for each file
this is how i think it needs to be done but im not sure?????
can ne1 help me
this is what i've come up with am gettign errors
#!/bin/csh
while read -a lfiles -p "Enter files to process:"; do
for file in "${lfiles[@]}";do
if[ "${file##*.}" == "l" ];then
# Place your compilation procedure
cc -o "${file##*.}" lex.yy.c -ll
fi
done
done