summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSebastian Schmelzer2011-06-10 10:48:42 +0200
committerSebastian Schmelzer2011-06-10 10:48:42 +0200
commit958eceb5c16f8b5acb4463f45d56bccc32878049 (patch)
treec32f1da0b67a41b3bff060c4f8cdecdf60fc56ed /tools
parentadd netconsole to syslog plugin (diff)
downloadcore-958eceb5c16f8b5acb4463f45d56bccc32878049.tar.gz
core-958eceb5c16f8b5acb4463f45d56bccc32878049.tar.xz
core-958eceb5c16f8b5acb4463f45d56bccc32878049.zip
fix rpm/deb creation
Diffstat (limited to 'tools')
-rwxr-xr-xtools/installer5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/installer b/tools/installer
index 64f64158..41b682e4 100755
--- a/tools/installer
+++ b/tools/installer
@@ -437,8 +437,10 @@ build_dpkg_package()
sed -i -e "4r./packaging/dpkg/debianpaths" \
$SLX_DEPBUILD_PATH/DEBIAN/postinst
+ PKG_VERSION=$(echo $OPENSLX_VERSION | sed -e "s/^v//" -e "s/-[^-]*$//")
+
#update control file
- sed -e "s/##version##/$OPENSLX_VERSION/" \
+ sed -e "s/##version##/$PKG_VERSION/" \
-e "s/##size##/$(du -s $SLX_BUILD_PATH | awk '{print $1}')/" \
-i $SLX_DEPBUILD_PATH/DEBIAN/control
@@ -451,7 +453,6 @@ build_dpkg_package()
echo -e " [${LightGreen}ok${NC}]"
- bash
mkdir -p $INSTALL_HOME/pkgs/
cp $SLX_DEPBUILD_PATH.deb $INSTALL_HOME/pkgs/$VERSIONSTRING.deb
cd $INSTALL_HOME