summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/repackage-common.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/repackage-common.sh b/scripts/repackage-common.sh
index 23985b2..94af157 100644
--- a/scripts/repackage-common.sh
+++ b/scripts/repackage-common.sh
@@ -163,6 +163,9 @@ function do_transform() {
--target-dir ${SRC_OUT_DIR} \
--change-log ${CHANGE_LOG} \
${REPACKAGE_ARGS}
+
+ # Restore TEST_MAPPING files that may have been removed from the source directory
+ (cd $SRC_OUT_DIR; git checkout HEAD $(git status --short | grep -E "^ D .*/TEST_MAPPING$" | cut -c4-))
}
REPACKAGED_DIR=${PROJECT_DIR}/repackaged