From: Tim-Philipp Müller Date: Sat, 20 Apr 2013 14:56:28 +0000 (+0100) Subject: update-readmes: add series version to README X-Git-Tag: upstream/20130618~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5edcd857b2107cd8b78c16232dd10877513ec157;p=platform%2Fupstream%2Fgst-common.git update-readmes: add series version to README --- diff --git a/README b/README index f0ad183..83a1b88 100644 --- a/README +++ b/README @@ -1,3 +1,5 @@ +GStreamer @SERIES_VERSION@ + WHAT IT IS ---------- 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