summaryrefslogtreecommitdiff
path: root/tools/PracroAdd
diff options
context:
space:
mode:
Diffstat (limited to 'tools/PracroAdd')
-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;