From: Ulya Trofimovich Date: Fri, 24 Jul 2015 19:28:20 +0000 (+0100) Subject: Fixed typos in release script, updated release guidelines. X-Git-Tag: 0.15~182 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4d1ca6d46167321fc860c99b8b2855e04bc8394;p=re2c Fixed typos in release script, updated release guidelines. --- diff --git a/add-release.txt b/add-release.txt index ceedd7be..17b6ff83 100644 --- a/add-release.txt +++ b/add-release.txt @@ -10,6 +10,8 @@ on branch 'gh-pages': index.html 3. Run release script: - $ re2c/release.sh + $ ./release.sh 4. Update version to .dev + +5. Attach tarball (built with release.sh) to autogenerated release on github diff --git a/release.sh b/release.sh index 9eeb6a94..126a0e62 100755 --- a/release.sh +++ b/release.sh @@ -7,6 +7,7 @@ then echo "usage: ./release.sh " exit 1 fi +version="$1" branch=`git rev-parse --abbrev-ref HEAD` if [ $branch != "master" ] @@ -15,8 +16,6 @@ then exit 1 fi -version="$1" - # edit version in re2c/configure.in lcontext="AC_INIT\(\[re2c\],\[" rcontext="\],\[re2c-general@lists\.sourceforge\.net\]\)" @@ -26,7 +25,7 @@ sed -i -E "s/$lcontext$old$rcontext/$lcontext$new$rcontext/" re2c/configure.ac # distcheck builddir=.build -cd re2c && ./distcheck $builddir && cd .. +cd re2c && ./distcheck.sh $builddir && cd .. # commit release git commit -a -m "Release $version." @@ -39,7 +38,6 @@ done # upload site git checkout gh-pages cp -f re2c/$builddir/doc/manual.html manual.html - git add index.html manual.html git commit -a -m "Updated site." for r in `git remote` do