summaryrefslogtreecommitdiffstats
path: root/testing/source/vtown/kde/build/uplift-builds.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testing/source/vtown/kde/build/uplift-builds.sh')
-rwxr-xr-xtesting/source/vtown/kde/build/uplift-builds.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/source/vtown/kde/build/uplift-builds.sh b/testing/source/vtown/kde/build/uplift-builds.sh
new file mode 100755
index 000000000..508e92632
--- /dev/null
+++ b/testing/source/vtown/kde/build/uplift-builds.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+# Update the combined build numbers from the native and vtown build numbers.
+for native in native-build-number/* ; do
+ BUILDFILE=$(basename $native)
+ if [ "$BUILDFILE" = "increment.sh" ]; then
+ continue
+ fi
+ OLDCONTENTS=$(cat $BUILDFILE 2> /dev/null)
+ NEWCONTENTS="$(cat $native)_vtown_$(cat vtown-build-number/$(basename $native))"
+ if [ ! "$OLDCONTENTS" = "$NEWCONTENTS" ]; then
+ echo "Uplifting $BUILDFILE"
+ echo $NEWCONTENTS > $BUILDFILE
+ fi
+done