summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStaroselskii Georgii <gosha371@gmail.com>2016-07-29 18:41:13 +0300
committerStaroselskii Georgii <gosha371@gmail.com>2016-07-29 18:51:55 +0300
commit9b0a793dfb971ebb3053553f13593dbfafa939bf (patch)
tree881eea50e15edd887bbb4cb3939a4de55c0aa3dc
parentdddb5b5f74ede7b2826413554b5e65295c86bec3 (diff)
build.sh: fix for patchsets with same names in substages
In that case (i.e. stage2/01-sys-tweaks and stage2/02-net-tweaks) a directory with a same name (00-pc) is getting created for both quilt patch sets. This might yield a situation when second patch set is not applied. The fix is to come up with a more sophisticated naming convention for intermediate patchset directory (which .pc symlinks to) and create separate directories for each patchset.
-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