mirror of
git://slackware.nl/current.git
synced 2025-01-11 08:01:05 +01:00
15 lines
479 B
Bash
15 lines
479 B
Bash
#!/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
|