Skip to content

Instantly share code, notes, and snippets.

@RobinMcCorkell
Created July 1, 2014 09:30
Show Gist options
  • Save RobinMcCorkell/c5ddb85c08fe221613ae to your computer and use it in GitHub Desktop.
Save RobinMcCorkell/c5ddb85c08fe221613ae to your computer and use it in GitHub Desktop.
Git-based autogen.sh
#!/bin/bash
# Create ChangeLog from git
if which git > /dev/null && git rev-parse; then
[[ -e ChangeLog ]] && rm -f ChangeLog
git log --pretty=medium --abbrev-commit > ChangeLog
else
touch ChangeLog #suppress errors with a missing ChangeLog
fi
# Prepare the source files for packaging
autoreconf --force --install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment