From: Nicolas Boisselier Date: Thu, 22 Jan 2015 01:28:23 +0000 (+0000) Subject: --help-html X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=04173ff2e25d570fa587064c8428584b721d0bf5;p=nb.git --help-html --- diff --git a/etc/vim/checkscript.sh b/etc/vim/checkscript.sh old mode 100644 new mode 100755 diff --git a/etc/vim/checkspell.sh b/etc/vim/checkspell.sh old mode 100644 new mode 100755 diff --git a/etc/vim/choosesig.pl b/etc/vim/choosesig.pl old mode 100644 new mode 100755 diff --git a/etc/vim/templates/bash.tt b/etc/vim/templates/bash.tt index b0709a06..7a60f976 100644 --- a/etc/vim/templates/bash.tt +++ b/etc/vim/templates/bash.tt @@ -40,9 +40,9 @@ ${NAME} Example shell script with embedded POD documentation - -v, --verbose - --debug - -h, --help Print this help + -v, --verbose Print verbose mode + -d, --debug Print debug messages + -h, --help Print this help (alternatives: --man, --help-html|-hh) =head1 DESCRIPTION @@ -98,10 +98,11 @@ while [ $# -gt 0 ]; do -*help|-h) usage | pod2text --width 250; exit 0 ;; --man) usage | pod2man | man -l -; exit 0 ;; + --help-html|-hh) usage | pod2html; exit 0 ;; --verbose|-v) VERBOSE=$(($VERBOSE+1)) ;; - --debug) DEBUG=$(($DEBUG+1)) ;; + --debug|-d) DEBUG=$(($DEBUG+1)) ;; *) echo "Unknow option: $1 at $0!"; exit -1; ;; diff --git a/etc/vim/templates/daemon.tt b/etc/vim/templates/daemon.tt index 80d69ee5..14515028 100644 --- a/etc/vim/templates/daemon.tt +++ b/etc/vim/templates/daemon.tt @@ -18,7 +18,7 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin DAEMON=/usr/sbin/YOUR -OPTS="" +ARGS="" NAME=`basename $DAEMON` PIDFILE="/var/run/$NAME.pid" @@ -37,7 +37,7 @@ case "$1" in log_daemon_msg "Starting" "${NAME}" start-stop-daemon --start --background --quiet \ --pidfile $PIDFILE --make-pidfile \ - --exec $DAEMON -- $OPTS + --exec $DAEMON -- $ARGS log_end_msg $? ;; stop) diff --git a/etc/vim/vim-shortcurts b/etc/vim/vim-shortcurts old mode 100644 new mode 100755 diff --git a/etc/vim/vim-shortcurts-stdin b/etc/vim/vim-shortcurts-stdin old mode 100644 new mode 100755 diff --git a/etc/vim/vim-shortcurts.new b/etc/vim/vim-shortcurts.new old mode 100644 new mode 100755 diff --git a/etc/vim/vim-template-0.3.0.zip b/etc/vim/vim-template-0.3.0.zip old mode 100644 new mode 100755 diff --git a/etc/vim/vimplaterc b/etc/vim/vimplaterc old mode 100644 new mode 100755