version 1.2.4.2, 2006/03/07 18:45:39
|
version 1.3, 2008/12/01 17:49:05
|
|
|
# Change mof files in the src directories. They are our files. For now change only thise | # Change mof files in the src directories. They are our files. For now change only thise |
# that already have a license. | # that already have a license. |
find -name *.mof | grep -v InterfaceArchive | while read filename ; do | find -name *.mof | grep -v InterfaceArchive | while read filename ; do |
if grep '\/%2005\/' ${filename} 1> /dev/null |
if grep '\/%2006\/' ${filename} 1> /dev/null |
then | then |
make -f $PEGASUS_ROOT/mak/license.mak fix-code-license FILENAME=${filename} >> licensechange.log | make -f $PEGASUS_ROOT/mak/license.mak fix-code-license FILENAME=${filename} >> licensechange.log |
fi | fi |
|
|
# also our files. Note that this is conditional and only puts licenses on | # also our files. Note that this is conditional and only puts licenses on |
# files that already have them. | # files that already have them. |
find -name *.mof | grep -v InterfaceArchive | while read filename ; do | find -name *.mof | grep -v InterfaceArchive | while read filename ; do |
if grep '\/%2005\/' ${filename} 1> /dev/null |
if grep '\/%2006\/' ${filename} 1> /dev/null |
then | then |
make -f $PEGASUS_ROOT/mak/license.mak fix-code-license FILENAME=${filename} >> $LOGFILE | make -f $PEGASUS_ROOT/mak/license.mak fix-code-license FILENAME=${filename} >> $LOGFILE |
fi | fi |
|
|
| |
# Test for any remaining files that have the previous year license | # Test for any remaining files that have the previous year license |
cd $PEGASUS_ROOT | cd $PEGASUS_ROOT |
grep -r \/%2005\/ . >> $LOGFILE |
grep -r \/%2006\/ . >> $LOGFILE |
echo "Completed" >> $LOGFILE | echo "Completed" >> $LOGFILE |
| |