]> 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:

check mail stats for sidebar
[etc/mutt.git] / .mutt / mkconf
index 212a115bbdc3f63dc84e2468888379a2f555a1a6..e98a9e107de994ac038a63834344f28aa67ad2ca 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -eu
 
 #!/bin/sh
 set -eu
 
-FILE="${1:-}"
+FILE="${1:-${0%/*}/confvars}"
 TARGET="${2:-}"
 
 if [ ! -f "$FILE" ]; then
 TARGET="${2:-}"
 
 if [ ! -f "$FILE" ]; then
@@ -62,7 +62,7 @@ cat <<_eof > "$TARGET"
 # Auto-generated using mkconf from manual.txt
 # on $(date +'%Y-%m-%d %H:%M:%S')
 #
 # Auto-generated using mkconf from manual.txt
 # on $(date +'%Y-%m-%d %H:%M:%S')
 #
-# Invoked as: $0 $@
+# Invoked as: $0${1:+ $@}
 #
 
 $(cat "$TMPFILE")
 #
 
 $(cat "$TMPFILE")