aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/createpkg
diff options
context:
space:
mode:
authorrudson <rudson@04377dda-e619-0410-9926-eae83683ac58>2007-02-27 20:37:52 +0000
committerrudson <rudson@04377dda-e619-0410-9926-eae83683ac58>2007-02-27 20:37:52 +0000
commit9ef1a48f646f3451ed70cd48904c86c686a0eb68 (patch)
treecc500c1991c30456b00e7b1f63fb92a561fc4a7b /trunk/src/createpkg
parentc60e7c45492609fe65dd77200cc2aeb67f4bb9f0 (diff)
downloadsimplepkg-9ef1a48f646f3451ed70cd48904c86c686a0eb68.tar.gz
simplepkg-9ef1a48f646f3451ed70cd48904c86c686a0eb68.tar.bz2
createpkg 1.0: adição da variável CREATEPKG_VERSION, para versão; grep '^[^#]' slack-required, para permitir comentários no slack-required.
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@196 04377dda-e619-0410-9926-eae83683ac58
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]`"