Sun, 16 Jul 2023 13:28:25 +0200
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"