- ERROR_PAR_NUMBER - incorrect number of parameters
- ERROR_COMMON_NOT_FOUND - file common.sh not found
+ - bugfixes:
+ - common.sh: added ;; in the end from line 787
+ - common.sh: change handle_error exit to "is_number $1 && exit $1 || exit 1"
+ - createpkg: protect parameters in solve_dep call with ""
+ - mkbuild: change "PACKGE NAME" parameter to "PKG NAME"
+ - model.mkbuild: change "PACKGE NAME" parameter to "PKG NAME"
+
0.6pre1-10
- simplepkg.conf:
$ERROR_PAR_NUMBER)
eecho $error "$BASENAME: incorrect number of parameters" ;;
$ERROR_COMMON_NOT_FOUND)
- eecho $error "$BASENAME: file $COMMON_SH not found. Check your $BASENAME installation"
+ eecho $error "$BASENAME: file $COMMON_SH not found. Check your $BASENAME installation" ;;
#
# Createpkg errors
eecho $error "$BASENAME: unknown error or user interrupt" ;;
esac
- exit $1
+ is_number $1 && exit $1 || exit 1
}
# Sections changes
#------------------
#>slackdesc
-[[PACKAGE NAME]]: [[PACKAGE NAME]] by Slack.Sarava
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
-[[PACKAGE NAME]]:
+[[PKG NAME]]: [[PKG NAME]] by Slack.Sarava
+[[PKG NAME]]:
+[[PKG NAME]]:
+[[PKG NAME]]:
+[[PKG NAME]]:
+[[PKG NAME]]:
+[[PKG NAME]]:
+[[PKG NAME]]:
+[[PKG NAME]]:
+[[PKG NAME]]:
+[[PKG NAME]]:
#<slackdesc
PROGRAM="`echo $dep | awk '{ print $1 }'`"
CONDITION="`echo $dep | awk '{ print $2 }' | tr [=\>\<] [egl]`"
VERSION="`echo $dep | awk '{ print $3 }' | tr -dc '[:digit:]'`"
- solve_dep $PROGRAM $CONDITION $VERSION
+ solve_dep "$PROGRAM" "$CONDITION" "$VERSION"
fi
true
done )
edit_file "YOUR SIGNATURE" "${AUTHOR_INITIALS}" ${MKBUILD_NAME}.mkbuild
fi
# Change Default SourceForge URL
- [ -z "$URL" ] && URL="http://downloads.sourceforge.net/[[PACKAGE NAME]]/"
+ [ -z "$URL" ] && URL="http://downloads.sourceforge.net/[[PKG NAME]]/"
edit_file "DEFAULT URL" "${URL}" ${MKBUILD_NAME}.mkbuild
# Change Package Name
- edit_file "PACKAGE NAME" "${MKBUILD_NAME}" ${MKBUILD_NAME}.mkbuild
- edit_file "PACKAGE NAME" "${MKBUILD_NAME}" ${MKBUILD_NAME}.mkbuild
+ edit_file "PKG NAME" "${MKBUILD_NAME}" ${MKBUILD_NAME}.mkbuild
+ edit_file "PKG NAME" "${MKBUILD_NAME}" ${MKBUILD_NAME}.mkbuild
# Print .mkbuild name
echo "${MKBUILD_NAME}.mkbuild"