From 2592c3545dd4bc343aff5d0d3e842e1a37c0fb39 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 11 Feb 2009 10:11:53 +0000 Subject: Added vim comment in file creator. Alaborated on helptext. --- tools/PracroAdd | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tools') 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; -- cgit v1.2.3