summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-12-21 11:32:42 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-12-21 11:32:42 +0100
commitc6c4a6174e3a8301ecdf355452588a98770e1119 (patch)
tree5373d2029822e8b40fe539e6172f501a9f4fe5e5 /tools
parent81f5c93c19816811918a38233bdd32c017f42883 (diff)
Added André Nusser to the add_file script.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/add_file38
1 files changed, 19 insertions, 19 deletions
diff --git a/tools/add_file b/tools/add_file
index d63b4ab..1f2b545 100755
--- a/tools/add_file
+++ b/tools/add_file
@@ -2,28 +2,30 @@
PROJECT="DrumGizmo"
function allfile() {
- echo "/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */" > $1;
- echo "/***************************************************************************" >> $1;
- echo " * $1" >> $1;
- echo " *" >> $1 ;
- echo " * `date`" >> $1;
- echo -n " * Copyright " >> $1
- echo -n `date +%Y | xargs` >> $1
- if [ "$USER" == "nemo" ];
+ if [ "$USER" == "nemo" ]
+ then
+ NAME="Jonas Suhr Christensen"; EMAIL="jsc@umbraculum.org"
+ fi
+ if [ "$USER" == "deva" ]
then
- echo " Jonas Suhr Christensen" >> $1;
- echo " * jsc@umbraculum.org" >> $1;
+ NAME="Bent Bisballe Nyeng"; EMAIL="deva@aasimon.org"
fi
- if [ "$USER" == "deva" ];
+ if [ "$USER" == "senator" ]
then
- echo " Bent Bisballe Nyeng" >> $1;
- echo " * deva@aasimon.org" >> $1;
+ NAME="Lars Bisballe Jensen"; EMAIL="elsenator@gmail.com"
fi
- if [ "$USER" == "senator" ];
+ if [ "$USER" == "chaot" ]
then
- echo " Lars Bisballe Jensen" >> $1;
- echo " * elsenator@gmail.com" >> $1;
+ NAME="André Nusser"; EMAIL="andre.nusser@googlemail.com"
fi
+
+ echo "/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */" > $1;
+ echo "/***************************************************************************" >> $1;
+ echo " * $1" >> $1;
+ echo " *" >> $1 ;
+ echo " * `date`" >> $1;
+ echo " * Copyright "`date +%Y | xargs`" $NAME" >> $1;
+ echo " * $EMAIL" >> $1;
echo " ****************************************************************************/" >> $1;
echo "" >> $1;
echo "/*" >> $1;
@@ -60,9 +62,7 @@ function hfile() {
allfile $1;
local hn=`echo $1 | tr 'a-z.' 'A-Z_'`
local pr=`echo $PROJECT | tr 'a-z.' 'A-Z_'`
- echo "#ifndef __${pr}_${hn}__" >> $1;
- echo "#define __${pr}_${hn}__" >> $1;
- echo "#endif/*__${pr}_${hn}__*/" >> $1;
+ echo "#pragma once" >> $1;
}
if [ "$#" = "1" ]; then