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." |