(file) Return to prependlicense.sh CVS log (file) (dir) Up to [OMI] / omi / scripts

File: [OMI] / omi / scripts / prependlicense.sh (download) / (as text)
Revision: 1.3, Mon Apr 20 17:20:13 2015 UTC (9 years ago) by krisbash
Branch: MAIN
CVS Tags: OMI_1_0_8_2, OMI_1_0_8_1, HEAD
Changes since 1.2: +0 -0 lines
OMI 1.0.8-1

#!/bin/bash
SOURCES1=`find . -name '*.c' -print`
SOURCES2=`find . -name '*.cpp' -print`
SOURCES3=`find . -name '*.h' -print`
SOURCES="$SOURCES1 $SOURCES2 $SOURCES3"
for i in $SOURCES
do
    echo $i
    cp $i $i.tmp
    cat license.h_ > $i
    cat $i.tmp >> $i
    rm -f $i.tmp
done

ViewCVS 0.9.2