summaryrefslogtreecommitdiffstats
path: root/skeletons/sh.erb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-03-26 08:25:27 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-03-26 08:25:27 +0200
commit567672be7bef7dcbecf70589dddbe6e193588475 (patch)
treef1d526c7709a5fce2d01c9574583db21c0be2266 /skeletons/sh.erb
parent1e2061952df01fe87209156062e060fb69e19ed8 (diff)
downloadvim-567672be7bef7dcbecf70589dddbe6e193588475.zip
vim-567672be7bef7dcbecf70589dddbe6e193588475.tar.gz
add skeletons
Diffstat (limited to 'skeletons/sh.erb')
-rw-r--r--skeletons/sh.erb32
1 files changed, 32 insertions, 0 deletions
diff --git a/skeletons/sh.erb b/skeletons/sh.erb
new file mode 100644
index 0000000..e2c953e
--- /dev/null
+++ b/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