From a9f211d4244900b0c0dc932893a3849a33891b96 Mon Sep 17 00:00:00 2001 From: rhatto Date: Sun, 21 Dec 2008 21:50:17 +0000 Subject: minor fixes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@700 04377dda-e619-0410-9926-eae83683ac58 --- trunk/mkbuild/generic.mkSlackBuild | 6 +++--- trunk/src/mkbuild | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/trunk/mkbuild/generic.mkSlackBuild b/trunk/mkbuild/generic.mkSlackBuild index e3c27dc..192023d 100644 --- a/trunk/mkbuild/generic.mkSlackBuild +++ b/trunk/mkbuild/generic.mkSlackBuild @@ -269,7 +269,7 @@ fi # Check Manifest file if [ -e "$CWD/Manifest" ]; then - for MANIFEST_LINE in `grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest`; do + grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | while read MANIFEST_LINE; do MANIFEST_FILE="`echo $MANIFEST_LINE | awk '{ print $2 }'`" if [ -e "$SRC_DIR/$MANIFEST_FILE" ]; then @@ -283,7 +283,7 @@ if [ -e "$CWD/Manifest" ]; then fi SIZE_SRC="`wc -c $MANIFEST_FILE`" - SIZE_MANIFEST="`echo $MANIFEST_LINE | awk '{ print $3 }`" + SIZE_MANIFEST="`echo $MANIFEST_LINE | awk '{ print $3 }'`" # Check source code size if [ "$SIZE_SRC" != "$SIZE_MANIFEST" ]; then @@ -299,7 +299,7 @@ if [ -e "$CWD/Manifest" ]; then ALGO_SRC="`"$ALGO"sum $MANIFEST_FILE | awk '{ print $1 }'`" fi ALGO_MANIFEST=$(echo $MANIFEST_LINE | sed 's/.* $ALGO //' | awk '{ print $1 }') - if [ "$ALGO_SRC" == "$ALGO_MANIFEST" ]; then + if [ "$ALGO_SRC" != "$ALGO_MANIFEST" ]; then echo "$ALGO Manifest: $ALGO_MANIFEST; $ALGO $SRC: $ALGO_SRC" exit $ERROR_MANIFEST fi diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild index 5466b18..9ab57a6 100755 --- a/trunk/src/mkbuild +++ b/trunk/src/mkbuild @@ -731,6 +731,10 @@ function file_metainfo { local size algo sum="" file="$1" file_type="`echo $2 | tr '[:lower:]' '[:upper:]'`" + if [ -d "$file" ]; then + return + fi + if [ -z "$file_type" ]; then file_type="AUX" fi -- cgit v1.2.3