summaryrefslogtreecommitdiff
path: root/update-readmes
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2013-04-20 15:56:28 +0100
committerTim-Philipp Müller <tim@centricular.net>2013-04-22 23:47:42 +0100
commit5edcd857b2107cd8b78c16232dd10877513ec157 (patch)
tree3ecc19d4c8e4f5c5c2e66d9d220852b4faae6bc2 /update-readmes
parent7708b456eb9fab5ececc5f6eb3e47973392e4451 (diff)
update-readmes: add series version to README
Diffstat (limited to 'update-readmes')
-rwxr-xr-xupdate-readmes10
1 files changed, 6 insertions, 4 deletions
diff --git a/update-readmes b/update-readmes
index 4afe162..1eb9912 100755
--- a/update-readmes
+++ b/update-readmes
@@ -22,19 +22,21 @@ fi
let m=$MINOR_VERSION%2
if test $m = 0; then
- VERSION="$MAJOR_VERSION.$MINOR_VERSION.x stable series"
+ SERIES_VERSION="$MAJOR_VERSION.$MINOR_VERSION.x stable series"
else
- VERSION="$MAJOR_VERSION.$MINOR_VERSION.x development series"
+ SERIES_VERSION="$MAJOR_VERSION.$MINOR_VERSION.x development series"
fi
-#echo "$VERSION"
+#echo "$SERIES_VERSION"
for f in $README_FILES ; do
- cp --preserve --update --verbose "common/$f" $f || {
+ cp --preserve "common/$f" $f || {
echo "Failed to update $f"
exit 1;
}
done
+sed -i "s/@SERIES_VERSION@/$SERIES_VERSION/g" README
+
if test x$1 = "x--run-git-add"; then
git add $README_FILES;
fi