xtn5250mg/build.sh
2026-01-16 17:08:00 +01:00

22 lines
639 B
Bash

#!/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.2.2"
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 -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 -C res res
find . -name "*.class" | xargs rm -rf