diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-03-09 16:09:39 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-03-16 18:01:41 +0100 |
commit | fe1f85118e0787ef5df28a045fd12d9133424b3f (patch) | |
tree | 8fa75a82698c5c39417fc0d7e26aff1c825df180 /prepare-release | |
parent | 3bf4c93ac241e270c374d1a49be11fb4d673abc1 (diff) |
set version before updating po files
This way the 'correct' version is carried over into the po files to
reflect which version they were built for rather than the version before
the current one.
Git-Dch: Ignore
Diffstat (limited to 'prepare-release')
-rwxr-xr-x | prepare-release | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/prepare-release b/prepare-release index 67f4638d6..8a3743ad7 100755 --- a/prepare-release +++ b/prepare-release @@ -52,14 +52,14 @@ if [ "$1" = 'pre-export' ]; then VERSION="$VERSION~$(date +%Y%m%d)" fi + sed -i -e "s/^PACKAGE_VERSION=\".*\"$/PACKAGE_VERSION=\"${VERSION}\"/" configure.ac + sed -i -e "s/^<!ENTITY apt-product-version \".*\">$/<!ENTITY apt-product-version \"${VERSION}\">/" doc/apt-verbatim.ent + if [ "$(date +%Y-%m-%d)" != "$(grep --max-count=1 '^"POT-Creation-Date: .*\n"$' po/apt-all.pot | cut -d' ' -f 2)" -o \ "$(date +%Y-%m-%d)" != "$(grep --max-count=1 '^"POT-Creation-Date: .*\n"$' doc/po/apt-doc.pot | cut -d' ' -f 2)" ]; then echo >&2 'POT files are not up-to-date. Execute »make update-po« for you…' make update-po fi - - sed -i -e "s/^PACKAGE_VERSION=\".*\"$/PACKAGE_VERSION=\"${VERSION}\"/" configure.ac - sed -i -e "s/^<!ENTITY apt-product-version \".*\">$/<!ENTITY apt-product-version \"${VERSION}\">/" doc/apt-verbatim.ent elif [ "$1" = 'post-build' ]; then if [ "$DISTRIBUTION" != "UNRELEASED" ]; then echo >&2 "REMEMBER: Tag this release with »git tag ${VERSION}« if you are satisfied" |