Prepare build-env for first beta

This commit is contained in:
Mike Massonnet
2010-05-10 21:36:34 +02:00
parent a21b1bfca8
commit 8dd82ed6a8
14 changed files with 59 additions and 1860 deletions

View File

@@ -1,8 +1,4 @@
#!/bin/sh
#
# Copyright (c) 2002-2007
# The Xfce development team. All rights reserved.
#
(type xdt-autogen) >/dev/null 2>&1 || {
cat >&2 <<EOF
@@ -14,15 +10,18 @@ EOF
exit 1
}
# substitute revision and linguas
linguas=`ls po/*.po 2>/dev/null | awk 'BEGIN {FS="[./]"; ORS=" "} {print $2}'`
if test -d .git; then
revision=`git log --pretty=format:%h -n 1`
echo 'dnl *** This file is automatically generated from configure.ac.in ***' > configure.ac
echo 'dnl *** DO NOT EDIT! ***' >> configure.ac
echo >> configure.ac
linguas=$(ls po/*.po 2>/dev/null | awk 'BEGIN {FS="[./]"; ORS=" "} {print $2}')
if [ -d .git ]; then
revision=$(git log --pretty=format:%h -n 1)
else
revision="UNKNOWN"
revision=UNKNOWN
fi
sed -e "s/@LINGUAS@/${linguas}/g" \
-e "s/@REVISION@/${revision}/g" \
< "configure.in.in" > "configure.in"
< configure.ac.in >> configure.ac
exec xdt-autogen $@