Skip to content
Snippets Groups Projects

(SH) make for my scala project

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Lior Spach
    Edited
    make.sh 370 B
    #!/bin/sh
    #Dirs: src lib
    
    mkdir -p bin
    cd bin/
    rm -f *.class
    echo "Compiling.."
    scalac -cp ../lib/jsoup-1.8.1.jar ../src/Main.scala ../src/Item.scala ../src/Geral.scala ../src/Categoria.scala
    if [ $? -eq 0 ]; then
      echo "Generating jar.."
      mkdir -p ../exe/lib
      jar cfm ../exe/dl-internacional.jar ../manifest *.class 
      cp ../lib/* ../exe/lib/
      echo "done."
    fi
    cd ..
    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