dist/install.sh

changeset 27
e6e7e63b8b5e
parent 26
0a5e13216803
equal deleted inserted replaced
26:0a5e13216803 27:e6e7e63b8b5e
39 # 39 #
40 # install the JAR file 40 # install the JAR file
41 # 41 #
42 echo "cp ../target/uwproj-0.1-jar-with-dependencies.jar $PREFIX/lib/uwproj/uwproj-0.1.jar" 42 echo "cp ../target/uwproj-0.1-jar-with-dependencies.jar $PREFIX/lib/uwproj/uwproj-0.1.jar"
43 cp "../target/uwproj-0.1-jar-with-dependencies.jar" "$PREFIX/lib/uwproj/uwproj-0.1.jar" \ 43 cp "../target/uwproj-0.1-jar-with-dependencies.jar" "$PREFIX/lib/uwproj/uwproj-0.1.jar" \
44 || exit_on_error "Installing JAR file failed." 44 || exit_on_error "Installing JAR file failed."
45 45
46 # 46 #
47 # create a run script in the bin dir 47 # create a run script in the bin dir
48 # 48 #
49 echo "cp bin/uwproj $PREFIX/bin" 49 echo "cp bin/uwproj $PREFIX/bin"
50 sed "s:%%PREFIX%%:$PREFIX:g" "bin/uwproj" > "$PREFIX/bin/uwproj" \ 50 sed "s:%%PREFIX%%:$PREFIX:g" "bin/uwproj" > "$PREFIX/bin/uwproj" \
51 || exit_on_error "Creating run script failed." 51 || exit_on_error "Creating run script failed."
52 52
53 echo "chmod 0555 $PREFIX/bin/uwproj"
54 chmod 0755 "$PREFIX/bin/uwproj" \
55 || exit_on_error "Changing permissions for run script failed."
53 56
57 echo
58 echo "uwproj has been successfully installed."

mercurial