aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtrunk/src/mkbuild6
1 files 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