aboutsummaryrefslogtreecommitdiff
path: root/trunk/utils
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-10 04:57:33 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-10 04:57:33 +0000
commit5732c990b427aa59afa05593d3521f6b88b207ad (patch)
tree4aeaff586ccb19ec85f827b5dc6da5ec9fccb9e4 /trunk/utils
parent830071d7a3783f89adb1fa450fbbc83de54897e9 (diff)
downloadsimplepkg-5732c990b427aa59afa05593d3521f6b88b207ad.tar.gz
simplepkg-5732c990b427aa59afa05593d3521f6b88b207ad.tar.bz2
small pt_BR documentation change
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@331 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/utils')
-rwxr-xr-xtrunk/utils/add-slack-required18
1 files changed, 12 insertions, 6 deletions
diff --git a/trunk/utils/add-slack-required b/trunk/utils/add-slack-required
index d402c52..ede8713 100755
--- a/trunk/utils/add-slack-required
+++ b/trunk/utils/add-slack-required
@@ -4,17 +4,23 @@
# by rhatto at riseup.net
#
-slackbuild="/path/to/slackbuilds"
-repository="/path/to/packages"
-
COMMON="/usr/libexec/simplepkg/common.sh"
BASENAME="`basename $0`"
-if [ ! -d "$slackbuild" ] || [ ! -d "$repository" ]; then
- echo $BASENAME: folder not found: $slackbuild or $repository
+if [ -z "$2" ]; then
+ echo "usage: $BASENAME /path/to/slackbuilds /path/to/packages"
+ exit 1
+elif [ ! -d "$1" ]; then
+ echo "$BASENAME: folder not found: $1"
+ exit 1
+elif [ ! -d "$2" ]; then
+ echo "$BASENAME: folder not found: $2"
exit 1
fi
+slackbuild="$1"
+repository="$2"
+
# we need the function package_name
if [ -f "$COMMON" ]; then
source $COMMON
@@ -26,7 +32,7 @@ fi
function search_and_copy_slackbuild {
if [ -f "$1" ]; then
- echo copying `basename $1` to `dirname $package`/$pack.slack-required
+ echo Copying `basename $1` to `dirname $package`/$pack.slack-required
cp $1 `dirname $package`/$pack.slack-required
svn add `dirname $package`/$pack.slack-required 2> /dev/null
fi