changeset 25:64151d1c78b6

Package: Fix packing symlinks into TAR, add Windows run script
author Fox
date Thu, 05 May 2022 17:09:31 +0200
parents b66fc08656c1
children 03fb5ab2e0a6
files package.gui_sh
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/package.gui_sh	Thu May 05 05:05:50 2022 +0200
+++ b/package.gui_sh	Thu May 05 17:09:31 2022 +0200
@@ -4,6 +4,8 @@
 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)
+
 if [ ! -d './build' ]; then
 	mkdir ./build
 fi
@@ -20,6 +22,13 @@
 java junotu.Main
 EOF
 chmod +x ./build/packed/run.sh
+cat > ./build/packed/run.bat <<EOF
+@echo off
+set "CLASSPATH=%cd%\lucene-core-3.0.3.jar;%cd%\JUnotu.jar"
+java junotu.Main
+EOF
+echo $version > ./build/packed/version
 scp -r ./lib/* ./build/packed/
 rm -f ./build/packed/JUnotu.tar
-tar -cvf ./build/packed/JUnotu.tar -C ./build/packed/ $(ls ./build/packed)
+tar -cvhf ./build/packed/JUnotu.tar -C ./build/packed/ $(ls ./build/packed)
+echo Packed revision: $version