A few fixes when running package scripts under debian.

This commit is contained in:
Paul Chote
2010-10-09 01:35:40 +13:00
parent 39742d02bb
commit 83c9e9e6dd
4 changed files with 14 additions and 13 deletions

View File

@@ -7,11 +7,9 @@ then
exit $E_BADARGS
fi
VERSION=$1
PACKAGE_SIZE=`du --apparent-size -c $2/usr | grep "total" | awk '{print $1}'`
# HACK: bsd du doesn't like --apparant-size; remember to add back when running on debian
PACKAGE_SIZE=`du -c $2/usr | grep "total" | awk '{print $1}'`
# Copy our two needed folders to a clean package directory (yes, this is needed)
# Copy template files into a clean build directory (required)
mkdir root
cp -R DEBIAN root
cp -R $2/usr root