summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index fe8214a..5b745e8 100755
--- a/build.sh
+++ b/build.sh
@@ -42,8 +42,9 @@ EOF
rm -rf *-pc
fi
QUILT_PATCHES=${SUB_STAGE_DIR}/${i}-patches
- mkdir -p ${i}-pc
- ln -sf ${i}-pc .pc
+ SUB_STAGE_QUILT_PATCH_DIR="$(basename $SUB_STAGE_DIR)-pc"
+ mkdir -p $SUB_STAGE_QUILT_PATCH_DIR
+ ln -snf $SUB_STAGE_QUILT_PATCH_DIR .pc
if [ -e ${SUB_STAGE_DIR}/${i}-patches/EDIT ]; then
echo "Dropping into bash to edit patches..."
bash