Prepare build-env for first beta
This commit is contained in:
19
autogen.sh
19
autogen.sh
@@ -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 $@
|
||||
|
||||
Reference in New Issue
Block a user