From 0a8ed54f1b642c90610bec760175fa105b7f32fb Mon Sep 17 00:00:00 2001 From: rhatto Date: Sun, 4 Jan 2009 18:26:27 +0000 Subject: attempting to close #67 git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@734 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/mkbuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild index 229b9cd..1d82db1 100755 --- a/trunk/src/mkbuild +++ b/trunk/src/mkbuild @@ -527,10 +527,10 @@ function section_change { function make_slack_required { # Build slack-required file - [ -e slack-required ] && mv slack-required slack-required.old + [ -e $WORK/slack-required ] && mv $WORK/slack-required $WORK/slack-required.old [ -z "$SLACK_REQUIRED" ] && return 0 - echo -e "# Dependency list to $SRC_NAME\n#\n# dependency [condition] [version]]" > slack-required + echo -e "# Dependency list to $SRC_NAME\n#\n# dependency [condition] [version]]" > $WORK/slack-required echo $SLACK_REQUIRED | sed 's/:/\n/g' | while read i; do REQ=`echo $i | awk '{ print $1 }'` @@ -1303,7 +1303,7 @@ function make_slackbuild { make_slack_required if [ -e slack-required ]; then - DEPENDENCY_LIST="`cat slack-required | awk '{print $1}' | grep '^[a-z]' | tr '\012' ' '`" + DEPENDENCY_LIST="`cat $WORK/slack-required | awk '{print $1}' | grep '^[a-z]' | tr '\012' ' '`" edit_file "REQUIRES" "$DEPENDENCY_LIST" $SLACKBUILD else edit_file "REQUIRES" " " $SLACKBUILD -- cgit v1.2.3