diff options
| author | Oliver Tappe | 2007-06-15 17:10:01 +0200 |
|---|---|---|
| committer | Oliver Tappe | 2007-06-15 17:10:01 +0200 |
| commit | efb225036e62ab95af6e5679011d112de4e4707d (patch) | |
| tree | 5fc3672ea7549b4dd96071152b01be24b30b09ea /builddebianpackage | |
| parent | * simplified use of PATH-variables to only the top-level set, all the (diff) | |
| download | core-efb225036e62ab95af6e5679011d112de4e4707d.tar.gz core-efb225036e62ab95af6e5679011d112de4e4707d.tar.xz core-efb225036e62ab95af6e5679011d112de4e4707d.zip | |
* moved builddebianpackage into 'packaging'-folder, adjusted accordingly
Felix: again, please shout if you see any problems.
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1168 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'builddebianpackage')
| -rwxr-xr-x | builddebianpackage | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/builddebianpackage b/builddebianpackage deleted file mode 100755 index 355d4832..00000000 --- a/builddebianpackage +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh -# -# This script transforms the openslx project files to debians -# binary package format .deb - -dpkg_deb=`which dpkg-deb` -if [ -z "$dpkg_deb" ];then - echo "You need the program dpkg-deb (contained in package dpkg) to build a debian package" - exit -fi - -# change into folder the this script lives in: -cd $(dirname $(readlink -f $0)) -if [ ! -e ./Makefile ]; then - echo "There is no makefile in this programs directory (`pwd`)." - echo "Please run this script only embedded in the context of an openslx installation" - exit -fi - -export SLX_BUILD_PATH=/tmp/slx$$ -mkdir -p $SLX_BUILD_PATH -# "make install" will install the slx software into $SLX_BUILD_PATH -if make install; then - #Create Temporary working directory - mkdir -p $SLX_BUILD_PATH/DEBIAN - mkdir -p $SLX_BUILD_PATH/usr/share/man/man1 - cp packaging/default_files/control $SLX_BUILD_PATH/DEBIAN/ - cp packaging/default_files/prerm $SLX_BUILD_PATH/DEBIAN/ - cp packaging/default_files/postinst $SLX_BUILD_PATH/DEBIAN/ - cp packaging/default_files/*.1 $SLX_BUILD_PATH/usr/share/man/man1/ - gzip -9 $SLX_BUILD_PATH/usr/share/man/man1/* - - #Set permissions - find $SLX_BUILD_PATH -type d|xargs chmod 755 - - #Create the package - dpkg-deb --build $SLX_BUILD_PATH > /dev/null - . ./VERSIONS - mv $SLX_BUILD_PATH.deb ./openslx_$OPENSLX_VERSION_STRING.deb - echo "Written './openslx_$OPENSLX_VERSION_STRING.deb':" - ls -lh ./openslx_$OPENSLX_VERSION_STRING.deb -fi -#Clean up -#rm -rf $SLX_BUILD_PATH - |
