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]:*}
21 version=$(printf '%s-%s%s' ${date} g ${head})
23 # Add a '-dirty' postfix for uncommitted changes.
25 if git diff-index HEAD | read dummy; then
26 version=`printf '%s%s' ${version} -dirty`
29 # Default to current date and time.
31 version="dev-$(date +%y.%m.%d-%H.%M.%S)"
36 sed -e s,@version@,${version},g configure.ac.in > configure.ac
39 libtoolize --force --copy
41 automake --foreign --add-missing --copy