From ad3359a9ab01b0c2f5a0111aecab8f82356da645 Mon Sep 17 00:00:00 2001 From: xHire Date: Fri, 25 Jul 2008 10:57:55 +0000 Subject: - upgraded french language file - added first version of packaging scripts for Linux platform and sources git-svn-id: http://opensvn.csie.org/tuxanci_ng@165 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- packaging/linux/client.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 packaging/linux/client.sh (limited to 'packaging/linux/client.sh') diff --git a/packaging/linux/client.sh b/packaging/linux/client.sh new file mode 100755 index 0000000..480caf0 --- /dev/null +++ b/packaging/linux/client.sh @@ -0,0 +1,41 @@ +#!/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!" + -- cgit v1.2.3