1 | for SOURCE_FILE in $(find . -name "*.php"); do |
---|
2 | if ! grep GNU $SOURCE_FILE > /dev/null; then |
---|
3 | echo $SOURCE_FILE"?" |
---|
4 | read RESP |
---|
5 | if [ "$RESP" == "y" ]; then |
---|
6 | tail -n+2 $SOURCE_FILE > /tmp/sourcefile; |
---|
7 | printf "<?php\n |
---|
8 | /*************************************************************************** |
---|
9 | * Expresso Livre * |
---|
10 | * http://www.expressolivre.org * |
---|
11 | * -------------------------------------------- * |
---|
12 | * This program is free software; you can redistribute it and/or modify it * |
---|
13 | * under the terms of the GNU General Public License as published by the * |
---|
14 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
15 | * option) any later version. * |
---|
16 | \**************************************************************************/\n" > $SOURCE_FILE; |
---|
17 | cat /tmp/sourcefile >> $SOURCE_FILE; |
---|
18 | fi; |
---|
19 | fi; |
---|
20 | done |
---|
21 | |
---|
22 | |
---|
23 | |
---|
24 | |
---|
25 | |
---|
26 | |
---|