diff options
author | Sebastian Schmelzer | 2009-01-27 13:12:02 +0100 |
---|---|---|
committer | Sebastian Schmelzer | 2009-01-27 13:12:02 +0100 |
commit | 5e178d76311bd6d525684ba0d4fbe7505eb76e12 (patch) | |
tree | b3df1e244406ba4555bbffe20fc71828343cc289 /packaging/dpkg/builddebianpackage | |
parent | * added missing spaces .. (diff) | |
download | core-5e178d76311bd6d525684ba0d4fbe7505eb76e12.tar.gz core-5e178d76311bd6d525684ba0d4fbe7505eb76e12.tar.xz core-5e178d76311bd6d525684ba0d4fbe7505eb76e12.zip |
* postinstall stuff added to deb templates
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2531 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'packaging/dpkg/builddebianpackage')
-rwxr-xr-x | packaging/dpkg/builddebianpackage | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/packaging/dpkg/builddebianpackage b/packaging/dpkg/builddebianpackage index 74b0a294..72472e59 100755 --- a/packaging/dpkg/builddebianpackage +++ b/packaging/dpkg/builddebianpackage @@ -9,6 +9,9 @@ if [ -z "$dpkg_deb" ];then exit fi +# import default paths for debian installation + . ./debianpaths + # change into folder where we expect the Makefile: cd $(dirname $(readlink -f $0))/../.. if [ ! -e ./Makefile ]; then @@ -29,6 +32,12 @@ if make plain-install; then . ./VERSIONS + OPENSLX_VERSION_SVNREV=$(svnversion .) + + + sed -i -e "4r./packaging/dpkg/debianpaths" \ + $SLX_BUILD_PATH/DEBIAN/postinst + #update control file sed -i -e "s/##version##/$OPENSLX_VERSION_STRING/" \ -e "s/##size##/$(du -s $SLX_BUILD_PATH | awk '{print $1}')/" \ @@ -45,4 +54,4 @@ if make plain-install; then ls -lh openslx_$OPENSLX_VERSION_STRING.deb fi #Clean up -rm -rf $SLX_BUILD_PATH +#rm -rf $SLX_BUILD_PATH |