buildtools/cloog/genversion.sh.in
Jerome Duval 5873a060ca imported PPL 0.11.1 and CLooG 0.18.0.
* these are dependencies for gcc 4 Graphite engine build.
* CLooG 0.18.0 includes ISL 0.11.1 which is the backend that the build script enables.
* PPL is needed by GCC build even if it isn't the chosen backend.
2013-04-06 15:10:34 +02:00

16 lines
352 B
Bash
Executable File

#! /bin/sh
srcdir=@abs_srcdir@
PACKAGE=@PACKAGE@
VERSION=@VERSION@
if test -f $srcdir/.git/HEAD; then
GIT_REPO="$srcdir/.git"
GIT_HEAD_ID=`GIT_DIR=$GIT_REPO git describe`
elif test -f $srcdir/CLOOG_HEAD; then
GIT_HEAD_ID=`cat $srcdir/CLOOG_HEAD`
else
GIT_HEAD_ID="$PACKAGE-$VERSION-UNKNOWN"
fi
echo $GIT_HEAD_ID | sed -e 's/cloog-//'