Browse Source

Update autogen.sh to work in git repositories.

Modification as suggested by benny.


(Old svn revision: 26512)
upstream/xfce4-panel-4.10.1
Jasper Huijsmans 15 years ago
parent
commit
f1c060f434
  1. 13
      autogen.sh

13
autogen.sh

@ -28,11 +28,14 @@ EOF
}
# substitute revision and linguas
linguas=`sed -e '/^#/d' po/LINGUAS`
revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%05d\n", $2}'`
sed -e "s/@LINGUAS@/${linguas}/g" \
-e "s/@REVISION@/${revision}/g" \
< "configure.in.in" > "configure.in"
if test -d .git/svn; then
revision=`LC_ALL=C git-svn find-rev HEAD`
else
revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%05d\n",
$2}'`
fi
sed -e "s/@REVISION@/${revision}/g" \
< "configure.in.in" > "configure.in"
xdt-autogen $@

Loading…
Cancel
Save