diff options
| author | Staroselskii Georgii <gosha371@gmail.com> | 2016-07-29 18:41:13 +0300 |
|---|---|---|
| committer | Staroselskii Georgii <gosha371@gmail.com> | 2016-07-29 18:51:55 +0300 |
| commit | 9b0a793dfb971ebb3053553f13593dbfafa939bf (patch) | |
| tree | 881eea50e15edd887bbb4cb3939a4de55c0aa3dc | |
| parent | dddb5b5f74ede7b2826413554b5e65295c86bec3 (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-x | build.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |
