version 1.1, 2006/02/03 15:51:38
|
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 |
|
|
cd $PEGASUS_ROOT | cd $PEGASUS_ROOT |
echo "Completed Schemas mof files" >> licensechange.log | echo "Completed Schemas mof files" >> licensechange.log |
| |
|
# modify the various forms of readme files. |
|
cd $PEGASUS_ROOT |
|
find -name "README*.*" -o name "readme*.*" -o name "README*" | grep -v InterfaceArchive | while read filename ; do |
|
make -f $PEGASUS_ROOT/mak/license.mak fix-code-license FILENAME=${filename} >> licensechange.log |
|
done |
|
|
# 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 |
| |