Files
xfce4-taskmanager/autogen.sh
2010-05-10 22:22:51 +02:00

28 lines
816 B
Bash
Executable File

#!/bin/sh
(type xdt-autogen) >/dev/null 2>&1 || {
cat >&2 <<EOF
autogen.sh: You don't seem to have the Xfce development tools installed on
your system, which are required to build this software.
Please install the xfce4-dev-tools package first, it is available
from http://www.xfce.org/.
EOF
exit 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
fi
sed -e "s/@LINGUAS@/${linguas}/g" \
-e "s/@REVISION@/${revision}/g" \
< configure.ac.in >> configure.ac
exec xdt-autogen $@