view package.gui_sh @ 78:f3fe8eebdcfd

TabEdit: Ability to remove tags by middle-clicking them
author Fox
date Sat, 07 Jan 2023 02:12:43 +0100
parents 11bf54badc99
children 0d4e996a5d99
line wrap: on
line source

#!/bin/sh

#export _JAVA_AWT_WM_NONREPARENTING=1
export CLASSPATH=./src:./build:./lib/lucene-core-3.0.3.jar
#JAVA=/usr/lib/jvm/java-8-openjdk-amd64/bin/java

version=$(hg identify -i)

mkdir -p ./build/packed/libraries

javac -d ./build $(find ./src -name '*.java' | xargs) && cd build && jar cvefm junotu.Main ./packed/JUnotu.jar ../src/manifest $(find ./ -name *.class)
cd ..
cat > ./build/packed/readme.txt <<EOF
To run the program, unpack it from the achive and either double click 'JUnotu.jar' or run 'java -jar JUnotu.jar' command in the terminal.
EOF
echo $version > ./build/packed/version
scp -r ./lib/* ./build/packed/libraries
rm -f ./build/packed/JUnotu.tar
tar -cvhf ./build/packed/JUnotu.tar -C ./build/packed/ $(ls ./build/packed)
echo Packed revision: $version