]> git.madduck.net Git - etc/mutt.git/blobdiff - .mutt/mkconf

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

fix word-boundary message matching for attribution hook
[etc/mutt.git] / .mutt / mkconf
index c16c25407b6493db5394762dad81fb25e17f433c..e98a9e107de994ac038a63834344f28aa67ad2ca 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -eu
 
-FILE="${1:-}"
+FILE="${1:-${0%/*}/confvars}"
 TARGET="${2:-}"
 
 if [ ! -f "$FILE" ]; then
@@ -62,9 +62,11 @@ cat <<_eof > "$TARGET"
 # Auto-generated using mkconf from manual.txt
 # on $(date +'%Y-%m-%d %H:%M:%S')
 #
-# Invoked as: $0 $@
+# Invoked as: $0${1:+ $@}
 #
 
 $(cat "$TMPFILE")
+
+# vim:sw=12:noet:sts=12:ts=12:ft=muttrc
 _eof
 cleanup