aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-10-03 05:12:15 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-10-03 05:12:15 +0000
commitb9e56b6a8a785b9122b748f52d6f441c2eb882a5 (patch)
tree692da0da3e679d092bbd1a65fccc687752e4d0b4
parenta4374fc874ea4e108ae596f6ab602280ab0ba3f7 (diff)
downloadsimplepkg-b9e56b6a8a785b9122b748f52d6f441c2eb882a5.tar.gz
simplepkg-b9e56b6a8a785b9122b748f52d6f441c2eb882a5.tar.bz2
small fixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@444 04377dda-e619-0410-9926-eae83683ac58
-rwxr-xr-xtrunk/utils/simpletrack12
1 files changed, 5 insertions, 7 deletions
diff --git a/trunk/utils/simpletrack b/trunk/utils/simpletrack
index d20f770..a0749e4 100755
--- a/trunk/utils/simpletrack
+++ b/trunk/utils/simpletrack
@@ -16,27 +16,24 @@
# Place - Suite 330, Boston, MA 02111-1307, USA
#
-PRIORITY="slacktrack-real altertrack slacktrack"
+PRIORITY="slacktrack-real slacktrack altertrack"
BASENAME="`basename $0`"
function slacktrack {
- # TODO: env vars
$1 -b $REPOS -x $TMP,$SRC_DIR,/dev -jefkzp "$PACKAGE-$VERSION-$ARCH-$BUILD.tgz" "./$2"
}
function slacktrack-real {
- # TODO: env vars
$1 -b $REPOS -x $TMP,$SRC_DIR,/dev -jefkzp "$PACKAGE-$VERSION-$ARCH-$BUILD.tgz" "./$2"
}
function altertrack {
- # TODO: command line argument and env vars
- $1 ./$2
+ $1 -b $REPOS -x $TMP,$SRC_DIR,/dev -jefkzp "$PACKAGE-$VERSION-$ARCH-$BUILD.tgz" "./$2"
}
@@ -47,16 +44,17 @@ function altertrack {
if [ -z "$1" ]; then
echo "usage: $BASENAME [options] <build-script>"
exit 1
-else if [ ! -f "$1" ]; then
+elif [ ! -f "$1" ]; then
echo "$1: file not found"
exit 1
fi
for tracker in $PRIORITY; do
- path=`which $tracker`
+ path="`which $tracker 2> /dev/null`"
if [ "$?" == "0" ]; then
echo $BASENAME: using $tracker...
$tracker $path $*
+ break
fi
done