diff options
| author | scarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-25 12:13:11 +0000 |
|---|---|---|
| committer | scarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-25 12:13:11 +0000 |
| commit | 7dcbcc973e6a6791f392e3413aef42a12fd28c7d (patch) | |
| tree | d6c0b6dbe83bb0a6b234faf7a613df3d6bb2b755 /packaging/linux/client.sh | |
| parent | 131d4a021fdcd1550409459c204db1652db91937 (diff) | |
"uprava vyroby binarky pro linux + par kosmetickejch uprav"
git-svn-id: http://opensvn.csie.org/tuxanci_ng@169 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'packaging/linux/client.sh')
| -rwxr-xr-x | packaging/linux/client.sh | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/packaging/linux/client.sh b/packaging/linux/client.sh deleted file mode 100755 index 480caf0..0000000 --- a/packaging/linux/client.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -echo "*** GNU/Linux Binary Packager ***" - -if [ ! $1 ]; then - echo "usage: $0 version" - exit 1 -fi - -VERSION=$1 -INSTALL_DIR="pkgs/tuxanci-${VERSION}-linux" -BUILD_DIR="pkgs/tuxanci-${VERSION}-linux-build" -SVN='https://opensvn.csie.org/tuxanci_ng/' -log='linux.log' -error="Error! See pkgs/${log} for more iformation" - -2&>1 - -rm -rfv $INSTALL_DIR $BUILD_DIR > pkgs/"${log}" || ( echo $error; exit 1 ) - -mkdir -pv pkgs >> pkgs/"${log}" || ( echo $error; exit 1 ) - -echo "* Fetching files from SVN" -svn export $SVN $BUILD_DIR >> pkgs/"${log}" || ( echo $error; exit 1 ) - -echo "* Configuring" -echo "#define TUXANCI_NG_VERSION \"${VERSION}\"" > $BUILD_DIR/config.h || ( echo $error; exit 1 ) - -echo "* Compiling" -prevdir=`pwd` -cd $BUILD_DIR -cmake . -DPREFIX=\\\".\\\" -DDATADIR=\\\".\\\" -DLIBDIR=\\\"./modules\\\" -DCMAKE_INSTALL_PREFIX:PATH=/ -DCMAKE_INSTALL_DATADIR=/ >> "${prevdir}"/pkgs/"${log}" || ( echo $error; exit 1 ) -make >> "${prevdir}"/pkgs/"${log}" || ( echo $error; exit 1 ) -make DESTDIR="${prevdir}/${INSTALL_DIR}" install >> "${prevdir}"/pkgs/"${log}" || ( echo $error; exit 1 ) -cd $prevdir - -echo "* Packaging" -tar cjf "${INSTALL_DIR}".tar.bz2 $INSTALL_DIR || ( echo $error; exit 1 ) - -echo "** GNU/Linux binary package is ready!" - |