2 # bootstrap -- Use this script to create generated files from a VCS checkout
9 elif head=$(git rev-parse --short --verify HEAD 2>/dev/null); then
11 # If available, use the git commit revision for the package version.
13 # Add a date prefix for easy reading.
14 # date='2010-11-30 16:36:09 -0800'
16 date=$(git log --pretty=format:"%ci" -1 HEAD)
18 date=${date%%:[0-9][0-9] *}
23 version=$(printf '%s-%s%s' ${date} g ${head})
25 # Add a '-dirty' postfix for uncommitted changes.
27 if git diff-index HEAD | read dummy; then
28 version=`printf '%s%s' ${version} -dirty`
31 # Default to current date and time.
33 version="dev-$(date +%y.%m.%d-%H.%M.%S)"
38 sed -e s,@version@,${version},g configure.ac.in > configure.ac
41 libtoolize --force --copy
43 automake --foreign --add-missing --copy