summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authordeva <deva>2009-02-11 10:11:53 +0000
committerdeva <deva>2009-02-11 10:11:53 +0000
commit2592c3545dd4bc343aff5d0d3e842e1a37c0fb39 (patch)
tree9db6631db0887c13982d9f14b53060e4bce3ecee /tools
parent8a6d1f13b7680bc8f15ce57b8065a9bc774aa891 (diff)
Added vim comment in file creator. Alaborated on helptext.
Diffstat (limited to 'tools')
-rw-r--r--tools/PracroAdd10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/PracroAdd b/tools/PracroAdd
index d1d665f..cbcdb64 100644
--- a/tools/PracroAdd
+++ b/tools/PracroAdd
@@ -5,6 +5,7 @@ function allfile() {
WHO="`whoami`"
echo "/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */" > $1;
+ echo "/* vim: set et sw=2 ts=2: */" >> $1;
echo "/***************************************************************************" >> $1;
echo " * $1" >> $1;
echo " *" >> $1 ;
@@ -74,5 +75,12 @@ fi;
if [ "H" = `echo $1 | cut -d'.' -f2 | tr 'a-z' 'A-Z'` ]; then
hfile $1;
fi;
-else echo "Usage: $0 filename";
+else
+ echo "Usage: $0 filename";
+ echo
+ echo "Examples:";
+ echo "$0 myclass.cc Which will produce both myclass.cc and myclass.h";
+ echo "$0 myinterface.h Which will only produce myinterface.h";
+ echo
+ echo "NOTE: The files will be created in the current directory!";
fi;