diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-12-25 13:43:37 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-12-25 13:43:37 +0000 |
commit | aa0893f4fcc3e706cabab4af6ac3c322447d092f (patch) | |
tree | 1b10dcb4734da8fd5c6e059885c083efe1b606be /trunk | |
parent | b693926d0da78310023db0399428a078ec088e06 (diff) | |
download | simplepkg-aa0893f4fcc3e706cabab4af6ac3c322447d092f.tar.gz simplepkg-aa0893f4fcc3e706cabab4af6ac3c322447d092f.tar.bz2 |
attempting to fix #43
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@718 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk')
-rwxr-xr-x | trunk/src/mkbuild | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild index 6d9198f..8917974 100755 --- a/trunk/src/mkbuild +++ b/trunk/src/mkbuild @@ -1150,11 +1150,23 @@ function get_mkbuild_values { if_previous_error handle_error $ERROR_MKBUILD_CONSTRUCTION "SOURCE NAME" verbose "[[SOURCE NAME]]=\"$SRC_NAME\"" + # SOURCE NAME cannot be empty + if [ -z "$SRC_NAME" ]; then + echo "SOURCE NAME is empty." + handle_error $ERROR_MKBUILD_CONSTRUCTION "SOURCE NAME" + fi + # Package name STR_MOUNT=$SRC_NAME PKG_NAME=`validate_parameter "$PKG_NAME" "PACKAGE NAME" "$STR_MOUNT"` verbose "[[PACKAGE NAME]]=\"$PKG_NAME\"" + # PACKAGE NAME cannot be empty + if [ -z "$PKG_NAME" ]; then + echo "PACKAGE NAME is empty." + handle_error $ERROR_MKBUILD_CONSTRUCTION "PACKAGE NAME" + fi + # Version STR_MOUNT=`echo $SOURCE_NAME | sed -r 's/(.*)-(.*)\.(.*\..*)$/\2/'` VERSION=`validate_parameter "$VERSION" "VERSION" "$STR_MOUNT"` @@ -1361,6 +1373,7 @@ verbose -e "$BASENAME version $PROG_VERSION\n" if [ ! -z "$MKBUILD_NAME" ]; then case $ACTION in 'update_manifest') + shift update_manifest $* ;; 'commit_slackbuild') |