Skip to content

Instantly share code, notes, and snippets.

@nise-nabe
Created December 24, 2013 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nise-nabe/8111925 to your computer and use it in GitHub Desktop.
Save nise-nabe/8111925 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ "$2" = "" ] ; then
mv $1 $1.tmp
basename `git rev-parse --show-toplevel` > $1
cat $1.tmp >> $1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment