Debian Codegraph @

tools/add_file

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 PROJECT="DrumGizmo"
3
4 function allfilescip-shell shell drumgizmo 0.9.20-3 allfile().() {
5 if [scip-shell system . . `[`. "$USER" == "nemo" ]
6 then
7 NAME="Jonas Suhr Christensen"; EMAIL="[email protected]"
8 fi
9 if [scip-shell system . . `[`. "$USER" == "deva" ]
10 then
11 NAME="Bent Bisballe Nyeng"; EMAIL="[email protected]"
12 fi
13 if [scip-shell system . . `[`. "$USER" == "senator" ]
14 then
15 NAME="Lars Bisballe Jensen"; EMAIL="[email protected]"
16 fi
17 if [scip-shell system . . `[`. "$USER" == "chaot" ]
18 then
19 NAME="André Nusser"; EMAIL="[email protected]"
20 fi
21 if [scip-shell system . . `[`. "$DGUSER" == "glocke" ]
22 then
23 NAME="Christian Glöckner"; EMAIL="[email protected]"
24 fi
25 if [scip-shell system . . `[`. "$USER" == "meka" ]
26 then
27 NAME="Goran Mekić"; EMAIL="[email protected]"
28 fi
29
30 echoscip-shell system . . echo. "/* -*- Mode: c++ -*- */" > $1;
31 echoscip-shell system . . echo. "/***************************************************************************" >> $1;
32 echoscip-shell system . . echo. " * $1" >> $1;
33 echoscip-shell system . . echo. " *" >> $1 ;
34 echoscip-shell system . . echo. " * `LANG=C datescip-shell system . . date.`" >> $1;
35 echoscip-shell system . . echo. " * Copyright "`datescip-shell system . . date. +%Y | xargsscip-shell system . . xargs.`" $NAME" >> $1;
36 echoscip-shell system . . echo. " * $EMAIL" >> $1;
37 echoscip-shell system . . echo. " ****************************************************************************/" >> $1;
38 echoscip-shell system . . echo. "" >> $1;
39 echoscip-shell system . . echo. "/*" >> $1;
40 echoscip-shell system . . echo. " * This file is part of $PROJECT." >> $1;
41 echoscip-shell system . . echo. " *" >> $1;
42 echoscip-shell system . . echo. " * $PROJECT is free software; you can redistribute it and/or modify" >> $1;
43 echoscip-shell system . . echo. " * it under the terms of the GNU Lesser General Public License as published by" >> $1;
44 echoscip-shell system . . echo. " * the Free Software Foundation; either version 3 of the License, or" >> $1;
45 echoscip-shell system . . echo. " * (at your option) any later version." >> $1;
46 echoscip-shell system . . echo. " *" >> $1;
47 echoscip-shell system . . echo. " * $PROJECT is distributed in the hope that it will be useful," >> $1;
48 echoscip-shell system . . echo. " * but WITHOUT ANY WARRANTY; without even the implied warranty of" >> $1;
49 echoscip-shell system . . echo. " * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the" >> $1;
50 echoscip-shell system . . echo. " * GNU Lesser General Public License for more details." >> $1;
51 echoscip-shell system . . echo. " *" >> $1;
52 echoscip-shell system . . echo. " * You should have received a copy of the GNU Lesser General Public License" >> $1;
53 echoscip-shell system . . echo. " * along with $PROJECT; if not, write to the Free Software" >> $1;
54 echoscip-shell system . . echo. " * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA." >> $1;
55 echoscip-shell system . . echo. " */" >> $1;
56 }
57
58 function ccfilescip-shell shell drumgizmo 0.9.20-3 ccfile().() {
59 local hf=`echoscip-shell system . . echo. -n $1 | cutscip-shell system . . cut. -d'.' -f1`.h;
60 hfilescip-shell shell drumgizmo 0.9.20-3 hfile(). $hf;
61
62 allfilescip-shell shell drumgizmo 0.9.20-3 allfile(). $1;
63 echoscip-shell system . . echo. -n '#include "' >> $1;
64 echoscip-shell system . . echo. -n $hf >> $1;
65 echoscip-shell system . . echo. '"' >> $1;
66 echoscip-shell system . . echo. '' >> $1;
67 }
68
69 function hfilescip-shell shell drumgizmo 0.9.20-3 hfile().() {
70 allfilescip-shell shell drumgizmo 0.9.20-3 allfile(). $1;
71 local hn=`echoscip-shell system . . echo. $1 | trscip-shell system . . tr. 'a-z.' 'A-Z_'`
72 local pr=`echoscip-shell system . . echo. $PROJECT | trscip-shell system . . tr. 'a-z.' 'A-Z_'`
73 echoscip-shell system . . echo. "#pragma once" >> $1;
74 }
75
76 if [scip-shell system . . `[`. "$#" = "1" ]; then
77 if [scip-shell system . . `[`. "CC" = `echoscip-shell system . . echo. $1 | cutscip-shell system . . cut. -d'.' -f2 | trscip-shell system . . tr. 'a-z' 'A-Z'` ]; then
78 ccfilescip-shell shell drumgizmo 0.9.20-3 ccfile(). $1;
79 fi;
80 if [scip-shell system . . `[`. "H" = `echoscip-shell system . . echo. $1 | cutscip-shell system . . cut. -d'.' -f2 | trscip-shell system . . tr. 'a-z' 'A-Z'` ]; then
81 hfilescip-shell shell drumgizmo 0.9.20-3 hfile(). $1;
82 fi;
83 else echoscip-shell system . . echo. "Usage: $0 filename";
84 fi;