xtn5250mg/build.sh

22 lines
650 B
Bash
Raw Normal View History

2025-05-13 14:41:26 +02:00
#!/bin/bash
# Let's go to the folder containing the build.sh file
# We don't want to remove all .class files on the system should
# the script run on /
VERSION="0.1-1.19i"
BASEDIR=$(dirname $0)
echo $BASEDIR
cd $BASEDIR
# xtn5250mg is a very tiny project. This build is very simple:
# it deletes all .class object to rebuild them all.
find . -name "*.class" | xargs rm -rf
find . -name "*.java" > .javasources.txt
javac -target 7 -source 7 -encoding "ISO8859-1" @.javasources.txt
#rm -f .javasources.txt
JARFILE="xtn5250mg-${VERSION}.jar"
rm -f $JARFILE
jar cvmf META-INF/MANIFEST.MF $JARFILE build.sh net README logging.properties -C res res