diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2022-03-07 14:43:44 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2022-03-07 14:43:44 +0100 |
commit | cbcab8684e06379c9f5c51cfc9cac68d8684fe0c (patch) | |
tree | d03b04e9a7f8e3aae70e590953408f90deed077c /old/skeletons/sh.erb | |
parent | 721a7ea65d23e7b149ba73968a1d75727a55b390 (diff) | |
download | vim-cbcab8684e06379c9f5c51cfc9cac68d8684fe0c.zip vim-cbcab8684e06379c9f5c51cfc9cac68d8684fe0c.tar.gz |
move to old
Diffstat (limited to 'old/skeletons/sh.erb')
-rw-r--r-- | old/skeletons/sh.erb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/old/skeletons/sh.erb b/old/skeletons/sh.erb new file mode 100644 index 0000000..e2c953e --- /dev/null +++ b/old/skeletons/sh.erb @@ -0,0 +1,32 @@ +<%= header 'sh.hdr' %> + +SELF=`basename $0` +VERSION='0.0.1' + +function usage ( ) { + echo "usage : $SELF [-]" +} + +function version ( ) { + echo " $SELF version $VERSION" + echo " Copyright (C) <%= @username %> <%= "#{Time.now.year}-#{Time.now.year+3}" %>" + echo " This is free software; There is NO warranty; " + echo " not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." +} + +OPTERR=1 +while [ 1 ]; do + getopts "vha:" OPT + if test $? -gt 0; then break; fi + case $OPT in + v) + version && exit 0 + ;; + h) + usage && exit 0 + ;; + a) + echo "arg $OPTARG [$OPTIND]" + ;; + esac +done |