Commit fdfed033 authored by Matthias Braun's avatar Matthias Braun
Browse files

Update for release, add simple make_release.sh script

parent 0158e2f8
#define libfirm_VERSION_MAJOR 1
#define libfirm_VERSION_MINOR 22
#define libfirm_VERSION_MICRO 0
#define libfirm_VERSION_MINOR 21
#!/bin/sh
set -eu
WORKDIR="release"
VERSION_MAJOR="1"
VERSION_MINOR="22"
VERSION_MICRO="0"
VERSION="${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_MICRO}"
RELEASEDIR="libfirm-$VERSION"
FULLRELEASEDIR="$WORKDIR/$RELEASEDIR"
RELEASEFILE="libfirm-$VERSION.tar.bz2"
VERSIONFILE="../ir/common/version.h"
# test if versions match
echo "Checking for version mismatch"
egrep -q "#define libfirm_VERSION_MAJOR\\s*$VERSION_MAJOR" $VERSIONFILE
egrep -q "#define libfirm_VERSION_MINOR\\s*$VERSION_MINOR" $VERSIONFILE
egrep -q "#define libfirm_VERSION_MICRO\\s*$VERSION_MICRO" $VERSIONFILE
rm -rf "$FULLRELEASEDIR"
echo "Creating $RELEASEFILE"
git archive HEAD | bzip2 > "$RELEASEFILE"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment