From c6c4a6174e3a8301ecdf355452588a98770e1119 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 21 Dec 2015 11:32:42 +0100 Subject: =?UTF-8?q?Added=20Andr=C3=A9=20Nusser=20to=20the=20add=5Ffile=20s?= =?UTF-8?q?cript.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/add_file | 38 +++++++++++++++++++------------------- 1 file 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 -- cgit v1.2.3