diff options
| author | xHire <xHire@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-25 10:57:55 +0000 |
|---|---|---|
| committer | xHire <xHire@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-25 10:57:55 +0000 |
| commit | ad3359a9ab01b0c2f5a0111aecab8f82356da645 (patch) | |
| tree | 369cf0d8b10fe20001697840d499d2b93fe96045 /packaging/linux | |
| parent | 08afddc1d2f06438b398db488433ead5ac3e36fe (diff) | |
- 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
Diffstat (limited to 'packaging/linux')
| -rwxr-xr-x | packaging/linux/client.sh | 41 | ||||
| -rwxr-xr-x | packaging/linux/server.sh | 41 |
2 files changed, 82 insertions, 0 deletions
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!" + diff --git a/packaging/linux/server.sh b/packaging/linux/server.sh new file mode 100755 index 0000000..cd9414f --- /dev/null +++ b/packaging/linux/server.sh @@ -0,0 +1,41 @@ +#!/bin/sh + +echo "*** GNU/Linux Binary Server Packager ***" + +if [ ! $1 ]; then + echo "usage: $0 version" + exit 1 +fi + +VERSION=$1 +INSTALL_DIR="pkgs/tuxanci-${VERSION}-server" +BUILD_DIR="pkgs/tuxanci-${VERSION}-server-build" +SVN='https://opensvn.csie.org/tuxanci_ng/' +log='server.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 . -DServer=1 -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 server package is ready!" + |