autotools: Don't require custom automake options
[petitboot] / bootstrap
index 6a9f35b6238c26f6a0294b73199bb3ce9d177afb..91ba8c827b1a2add8c910f43f174e7bd05308da1 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -15,8 +15,10 @@ elif head=$(git rev-parse --short --verify HEAD 2>/dev/null); then
 
        date=$(git log --pretty=format:"%ci" -1 HEAD)
        date=${date##20}
-       date=${date%% [0-9][0-9]:*}
+       date=${date%%:[0-9][0-9] *}
        date=${date//-/.}
+       date=${date// /.}
+       date=${date//:/.}
 
        version=$(printf '%s-%s%s' ${date} g ${head})
 
@@ -38,5 +40,5 @@ sed -e s,@version@,${version},g configure.ac.in > configure.ac
 aclocal
 libtoolize --force --copy
 autoheader
-automake --foreign --add-missing --copy
+automake --add-missing --copy
 autoconf