"Fossies" - the Fresh Open Source Software Archive

Member "dmelt/macros/applet/a_compile.sh" (10 Apr 2019, 232 Bytes) of package /linux/misc/dmelt-2.4.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 
    3 args=$# 
    4 if [ $args == 0  ]
    5 then
    6    echo "did not specify input file!"
    7    exit 1;
    8 fi
    9 
   10 for i in lib/*/*.jar
   11 do
   12       CLASSPATH=$CLASSPATH:"$i"
   13 done
   14 
   15 CP=$CP:$CLASSPATH
   16 javac -classpath "$CP" $1
   17 
   18 echo "File $1 compiled!"