summaryrefslogtreecommitdiff
path: root/tools/add_file
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-09-25 17:08:44 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-09-25 17:08:44 +0200
commit4f6b15ea26b5fa09f300f67e4ce1057c2b39a3aa (patch)
tree45d7bb4a9a90ef603b5a7a65a4d4d4309a7a1538 /tools/add_file
parent0602763044f0f0f9163f2a888627213347d3dbb7 (diff)
New API, new name, new version.
Diffstat (limited to 'tools/add_file')
-rwxr-xr-xtools/add_file42
1 files changed, 12 insertions, 30 deletions
diff --git a/tools/add_file b/tools/add_file
index 89d4e1a..1a17d46 100755
--- a/tools/add_file
+++ b/tools/add_file
@@ -1,5 +1,5 @@
#!/bin/bash
-PROJECT="LibAudioIn"
+PROJECT="LibAudioIO"
function allfile() {
echo "/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */" > $1;
@@ -17,19 +17,19 @@ function allfile() {
echo "/*" >> $1;
echo " * This file is part of $PROJECT." >> $1;
echo " *" >> $1;
- echo " * $PROJECT is free software; you can redistribute it and/or modify" >> $1;
- echo " * it under the terms of the GNU General Public License as published by" >> $1;
- echo " * the Free Software Foundation; either version 2 of the License, or" >> $1;
- echo " * (at your option) any later version." >> $1;
- echo " *" >> $1;
+ echo " * $PROJECT is free software; you can redistribute it and/or" >> $1;
+ echo " * modify it under the terms of the GNU Lesser General Public" >> $1;
+ echo " * License as published by the Free Software Foundation; either" >> $1;
+ echo " * version 2.1 of the License, or (at your option) any later version." >> $1;
+ echo " * " >> $1;
echo " * $PROJECT is distributed in the hope that it will be useful," >> $1;
echo " * but WITHOUT ANY WARRANTY; without even the implied warranty of" >> $1;
- echo " * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the" >> $1;
- echo " * GNU General Public License for more details." >> $1;
- echo " *" >> $1;
- echo " * You should have received a copy of the GNU General Public License" >> $1;
- echo " * along with $PROJECT; if not, write to the Free Software" >> $1;
- echo " * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA." >> $1;
+ echo " * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU" >> $1;
+ echo " * Lesser General Public License for more details." >> $1;
+ echo " * " >> $1;
+ echo " * You should have received a copy of the GNU Lesser General Public" >> $1;
+ echo " * License along with $PROJECT; if not, write to the Free Software" >> $1;
+ echo " * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA" >> $1;
echo " */" >> $1;
}
@@ -42,24 +42,6 @@ function ccfile() {
echo -n $hf >> $1;
echo '"' >> $1;
echo '' >> $1;
-
- local hn=`echo $1 | cut -d'.' -f1 | tr 'a-z.' 'A-Z_'`
- echo "#ifdef TEST_${hn}" >> $1;
- echo "//Additional dependency files" >> $1;
- echo "//deps:" >> $1;
- echo "//Required cflags (autoconf vars may be used)" >> $1;
- echo "//cflags:" >> $1;
- echo "//Required link options (autoconf vars may be used)" >> $1;
- echo "//libs:" >> $1;
- echo "#include \"test.h\"" >> $1;
- echo "" >> $1;
- echo "TEST_BEGIN;" >> $1;
- echo "" >> $1;
- echo "// TODO: Put some testcode here (see test.h for usable macros)." >> $1;
- echo "" >> $1;
- echo "TEST_END;" >> $1;
- echo "" >> $1;
- echo "#endif/*TEST_${hn}*/" >> $1;
}
function hfile() {