diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-02-19 09:51:35 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-02-19 09:51:35 (GMT) |
commit | 05ce9d89b563083b062df82c50eee533555ceaf4 (patch) | |
tree | 844eb9844b9f0a078daf7dce3b55d6e764aa9001 /scripts/release-linux.sh | |
parent | 48ca7d1856a0c030ce1bf536f88cd51304ff8b1e (diff) |
Clifford Wolf:
Improved handling of examplesdir on linux
Updated scripts/release-linux.sh
git-svn-id: http://svn.clifford.at/openscad/trunk@441 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'scripts/release-linux.sh')
-rwxr-xr-x | scripts/release-linux.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/release-linux.sh b/scripts/release-linux.sh index 41a7aa3..5ee6147 100755 --- a/scripts/release-linux.sh +++ b/scripts/release-linux.sh @@ -1,7 +1,7 @@ #!/bin/bash # WARNING: This script might only work with the authors setup... -VERSION=2010.01 +VERSION=2010.02 set -ex @@ -25,7 +25,7 @@ exec $libdir/openscad "$@" EOT cp openscad release/lib/openscad/ -gcc -o chrpath_linux chrpath_linux.c +gcc -o chrpath_linux scripts/chrpath_linux.c ./chrpath_linux -d release/lib/openscad/openscad ldd openscad | sed -re 's,.* => ,,; s,[\t ].*,,;' -e '/Qt|boost/ { p; d; };' \ @@ -58,9 +58,9 @@ if [ ! -d "$prefix" ]; then read -p "press enter to continue> " fi -mkdir -p "$prefix"/{bin,lib/openscad} +mkdir -p "$prefix"/{bin,lib/openscad,share/openscad/examples} -if ! [ -w "$prefix"/bin/ -a -w "$prefix"/lib/ ]; then +if ! [ -w "$prefix"/bin/ -a -w "$prefix"/lib/openscad -a -w "$prefix"/share/openscad ]; then echo "You does not seam to have write permissions for prefix \`$prefix'!" >&2 echo "Maybe you should have run this install script using \`sudo'?" >&2 exit 1 @@ -72,6 +72,9 @@ cp -rv bin/. "$prefix"/bin/ echo "Copying application and libraries..." cp -rv lib/. "$prefix"/lib/ +echo "Copying examples..." +cp -rv examples/. "$prefix"/share/openscad/examples/ + echo "Installation finished. Have a nice day." EOT |