summaryrefslogtreecommitdiff
path: root/scripts/release-linux.sh
diff options
context:
space:
mode:
authorBrad Pitcher <bradpitcher@gmail.com>2012-02-04 21:14:35 (GMT)
committerBrad Pitcher <bradpitcher@gmail.com>2012-02-04 21:14:35 (GMT)
commit03771dc21ee84ff2ac681cec7782a478709f0d54 (patch)
treede713e6d26e00919e35c1bbb1c59e99efa76bc80 /scripts/release-linux.sh
parente725437a5a083ba5fa9e1c53af27f6e84027d656 (diff)
Fix linux releases
Diffstat (limited to 'scripts/release-linux.sh')
-rwxr-xr-xscripts/release-linux.sh92
1 files changed, 0 insertions, 92 deletions
diff --git a/scripts/release-linux.sh b/scripts/release-linux.sh
deleted file mode 100755
index e1eb001..0000000
--- a/scripts/release-linux.sh
+++ /dev/null
@@ -1,92 +0,0 @@
-#!/bin/bash
-# WARNING: This script might only work with the authors setup...
-
-VERSION=`date "+%Y.%m.%d"`
-#VERSION=2011.12
-
-set -ex
-
-# svnclean
-
-qmake-qt4 VERSION=$VERSION QMAKE_CXXFLAGS_RELEASE="-O3 -march=pentium"
-make
-
-rm -rf release
-mkdir -p release/{bin,lib/openscad,examples,libraries}
-
-cat > release/bin/openscad << "EOT"
-#!/bin/bash
-
-cd "$( dirname "$( type -p $0 )" )"
-libdir=$PWD/../lib/openscad/
-cd "$OLDPWD"
-
-export LD_LIBRARY_PATH="$libdir${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
-exec $libdir/openscad "$@"
-EOT
-
-cp openscad release/lib/openscad/
-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; };' \
- -e '/lib(audio|CGAL|GLEW|opencsg|png|gmp|gmpxx|mpfr)\.so/ { p; d; };' \
- -e 'd;' | xargs cp -vt release/lib/openscad/
-strip release/lib/openscad/*
-
-cat > release/install.sh << "EOT"
-#!/bin/bash
-
-# change to the install source directory
-cd "$( dirname "$( type -p $0 )" )"
-
-if ! [ -f bin/openscad -a -d lib/openscad -a -d examples -a -d libraries ]; then
- echo "Error: Can't change to install source directory!" >&2
- exit 1
-fi
-
-echo "This will install openscad. Please enter the install prefix"
-echo "or press Ctrl-C to abort the install process:"
-read -p "[/usr/local]: " prefix
-
-if [ "$prefix" = "" ]; then
- prefix="/usr/local"
-fi
-
-if [ ! -d "$prefix" ]; then
- echo; echo "Install prefix \`$prefix' does not exist. Press ENTER to continue"
- echo "or press Ctrl-C to abort the install process:"
- read -p "press enter to continue> "
-fi
-
-mkdir -p "$prefix"/{bin,lib/openscad,share/openscad/examples,share/openscad/libraries}
-
-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
-fi
-
-echo "Copying application wrappers..."
-cp -rv bin/. "$prefix"/bin/
-
-echo "Copying application..."
-cp -rv lib/. "$prefix"/lib/
-
-echo "Copying examples..."
-cp -rv examples/. "$prefix"/share/openscad/examples/
-
-echo "Copying libraries..."
-cp -rv libraries/. "$prefix"/share/openscad/libraries/
-
-echo "Installation finished. Have a nice day."
-EOT
-
-chmod 755 -R release/
-
-cp examples/* release/examples/
-chmod 644 -R release/examples/*
-
-cp -R libraries/* release/libraries/
-chmod -R u=rwx,go=r,+X release/libraries/*
-rm -rf `find release/libraries -name ".git"`
contact: Jan Huwald // Impressum