aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkdeb.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/mkdeb.sh b/mkdeb.sh
index aa6b82a5e..691ea71c9 100755
--- a/mkdeb.sh
+++ b/mkdeb.sh
@@ -44,7 +44,16 @@ find $INSTALL_DIR -type d | xargs chmod 755
44cd $CODE_DIR 44cd $CODE_DIR
45fakeroot dpkg-deb --build debian 45fakeroot dpkg-deb --build debian
46lintian --no-tag-display-limit debian.deb 46lintian --no-tag-display-limit debian.deb
47mv debian.deb ../firejail_$2_1_amd64.deb 47arch=$( getconf LONG_BIT )
48echo "if building a 32bit package, rename the deb file manually" 48if [ $arch = 64 ]
49then
50 mv debian.deb ../firejail_$2_1_amd64.deb
51elif [ $arch = 32 ]
52then
53 mv debian.deb ../firejail_$2_1_i386.deb
54# Fallback to 64-bit package.
55else
56 mv debian.deb ../firejail_$2_1_amd64.deb
57fi
49cd .. 58cd ..
50rm -fr $CODE_DIR 59rm -fr $CODE_DIR