aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/createpkg
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/createpkg')
-rw-r--r--trunk/src/createpkg6
1 files changed, 4 insertions, 2 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg
index 5ab979f..f589d02 100644
--- a/trunk/src/createpkg
+++ b/trunk/src/createpkg
@@ -31,6 +31,8 @@
# Createpkg functions
#---------------------------------------------------
+CREATEPKG_VERSION="1.0"
+
function error_codes {
# Slackbuilds error codes
@@ -129,6 +131,7 @@ function build_repo {
function usage {
# Help mensage
+ echo -e "$CL_COMMU Createpkg version $CREATEPKG_VERSION $CL_OFF\n"
echo -e "$CL_COMMU Usage: createpkg [--install/-i] package-name $CL_OFF"
echo -e "$CL_COMMU createpkg --no-deps/-np package-name $CL_OFF"
echo -e "$CL_COMMU createpkg --search/-s package-name $CL_OFF"
@@ -136,7 +139,6 @@ function usage {
echo -e "$CL_COMMU createpkg --list/-l $CL_OFF"
echo -e "$CL_COMMU createpkg --sync $CL_OFF"
echo -e "$CL_COMMU createpkg --help/-h $CL_OFF"
-
}
function check_config {
@@ -439,7 +441,7 @@ fi
if [ ! -z "$SLACK_REQUIRED" -a "$NO_DEPS" != "1" ]; then
# this routine checks for dependencies in package's slack-required
- ( cat $SLACK_REQUIRED | while read dep; do
+ ( grep '^[^#]' $SLACK_REQUIRED | while read dep; do
if [ ! -z "$dep" ]; then
PROGRAM="`echo $dep | awk '{ print $1 }'`"
CONDITION="`echo $dep | awk '{ print $2 }' | tr [=\>\<] [egl]`"