fix output not using PREFIX variable - fixes #270

Sun, 16 Jul 2023 13:28:25 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 16 Jul 2023 13:28:25 +0200
changeset 24
e7c0b50468ee
parent 23
79ca64922cfa
child 25
f061eecae302

fix output not using PREFIX variable - fixes #270

dist/install.sh file | annotate | diff | comparison | revisions
--- a/dist/install.sh	Sun Jul 16 13:10:50 2023 +0200
+++ b/dist/install.sh	Sun Jul 16 13:28:25 2023 +0200
@@ -22,13 +22,13 @@
 	esac
 done
 
-echo "mkdir -p /usr/lib/uwproj"
+echo "mkdir -p $PREFIX/lib/uwproj"
 mkdir -p "$PREFIX/lib/uwproj"
 
-echo "cp ../target/uwproj-0.1-jar-with-dependencies.jar /usr/lib/uwproj/uwproj-0.1.jar"
+echo "cp ../target/uwproj-0.1-jar-with-dependencies.jar $PREFIX/lib/uwproj/uwproj-0.1.jar"
 cp "../target/uwproj-0.1-jar-with-dependencies.jar" "$PREFIX/lib/uwproj/uwproj-0.1.jar"
 
-echo "cp bin/uwproj /usr/bin"
+echo "cp bin/uwproj $PREFIX/bin"
 sed "s:%%PREFIX%%:$PREFIX:g" "bin/uwproj" > "$PREFIX/bin/uwproj"
 
 

mercurial