summaryrefslogtreecommitdiffstats
path: root/testing/source/vtown/kde/build/uplift-builds.sh
blob: 508e926323a4a99aab80907650ff1d0ca677fb6e (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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