Created
September 8, 2012 10:00
-
-
Save mkrauskopf/3673150 to your computer and use it in GitHub Desktop.
Simple Haskell tags generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Regenerates Haskell tags in the current directory. | |
# | |
set -e | |
# Needed for case-sensitive searching. See: | |
# | |
# - Sort Files Like A Master With The Linux Sort Command (Bash) | |
# http://www.skorks.com/2010/05/sort-files-like-a-master-with-the-linux-sort-command-bash/ | |
# | |
export LC_ALL=C | |
find -type f | egrep \.hs$\|\.lhs$ | xargs -Ii hothasktags i | sort > tags | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment