From 9ef1a48f646f3451ed70cd48904c86c686a0eb68 Mon Sep 17 00:00:00 2001 From: rudson Date: Tue, 27 Feb 2007 20:37:52 +0000 Subject: createpkg 1.0: adição da variável CREATEPKG_VERSION, para versão; grep '^[^#]' slack-required, para permitir comentários no slack-required. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@196 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/createpkg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'trunk/src/createpkg') 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]`" -- cgit v1.2.3