Skip to content
Snippets Groups Projects
Commit 6ebf30ad authored by Ulrich Schwickerath's avatar Ulrich Schwickerath
Browse files

bash syntax fixes

parent ed784931
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ eval $command
# compile
for ending in .f .F ; do
ls *$ending >/dev/null 2>&1
if [[ $? == 0 ]]; then
if [ $? -eq 0 ]; then
for file in *$ending ; do
$FCOMP $FFLAGS -c $file
done
......@@ -27,5 +27,4 @@ $FCOMP $LDFLAGS *.o -o $pgm.exe $ADDLIB $DELLIBS $CERNLIBS
./$pgm.exe 1>$pgm.log 2>$pgm.err
# cleanup
#rm -f *.f *.c *.o
rm -f *.f *.c *.o
......@@ -13,7 +13,7 @@ eval $command
# compile
for ending in .f .F ; do
ls *$ending >/dev/null 2>&1
if [[ $? == 0 ]]; then
if [ $? -eq 0 ]; then
for file in *$ending ; do
$FCOMP $FFLAGS -c $file
done
......
......@@ -8,17 +8,17 @@ echo "+OPTION VERbose" > $pgm.cra1
echo "+USE, ${PLINAM}." >> $pgm.cra1
cat $DELPHI_PAM/skelana.cra >> $pgm.cra1
# modify
# modify
ycmd=`which nypatchy`
command="$ycmd - $pgm.f $pgm.cra1 $pgm.ylog $pgm.c - - ${pgm}R.f .go"
echo "Running $command"
eval $command
# compile
for ending in .f .F ; do
ls *$ending >/dev/null 2>&1
if [[ $? == 0 ]]; then
for file in *$ending ; do
for ending in .f .F ; do
ls *$ending >/dev/null 2>&1
if [ $? -eq 0 ]; then
for file in *$ending ; do
$FCOMP $FFLAGS -c $file
done
fi
......@@ -26,8 +26,8 @@ done
for ending in *.c *.C *.cc ; do
ls *$ending >/dev/null 2>&1
if [[ $? == 0 ]]; then
for file in *ending ; do
if [ $? -eq ]; then
for file in *ending ; do
$CCOMP $CFLAGS -c $file
done
fi
......@@ -36,12 +36,11 @@ done
# link
$FCOMP $LDFLAGS *.o -o $pgm.exe $ADDLIB $DELLIBS $CERNLIBS
# cleanup
rm -f *.f *.c *.o
# cleanup
rm -f *.f *.c *.o
# create input file
echo "FILE = simana.xsdst" > ./PDLINPUT
# execute
./$pgm.exe 1>$pgm.log 2>$pgm.err
./$pgm.exe 1>$pgm.log 2>$pgm.err
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment