Annotation of researchv10no/cmd/mk/mkexport, revision 1.1

1.1     ! root        1: S=/usr/src/libc
        !             2: I=/usr/include
        !             3: df(){
        !             4:        for i in *.c
        !             5:        do
        !             6:                echo $i
        !             7:                diff $i $S/$1/$i
        !             8:        done
        !             9:        for i in *.h
        !            10:        do
        !            11:                echo $i
        !            12:                diff $i $I/$i
        !            13:        done
        !            14: }
        !            15: 
        !            16: if [ -s export ]
        !            17: then
        !            18:        echo removing extant export
        !            19:        rm -fr export
        !            20: fi
        !            21: echo diffing libraries
        !            22: cd export.proto/libc
        !            23: df gen
        !            24: cd ../fio
        !            25: df fio
        !            26: cd ../math
        !            27: df math
        !            28: cd ../..
        !            29: echo copying proto
        !            30: reccp export.proto export
        !            31: cd export
        !            32: cp /usr/bin/mkconv /usr/bin/membername .
        !            33: cp /usr/man/man1/mk.1 .
        !            34: cp ../src/*.[ch] .
        !            35: cp /usr/include/ndir.h ndir.h
        !            36: cp /usr/lib/tmac/tmac.an .
        !            37: cp ../tut.ms .
        !            38: sed -e '/-o nmk/s:$: fio/fio.a libc/libc.a math/math.a:'\
        !            39:        -e '1,$s/V9/SYSV/g' -e 's/CFLAGS=/&-I.. /' ../src/mkfile > mkfile
        !            40: O=`ls *.c | sed -e 's/.$/o/'`
        !            41: O=`echo $O`
        !            42: echo "OBJ=$O" > temp
        !            43: cat Makefile >> temp
        !            44: echo "$O:      " *.h >> temp
        !            45: mv temp Makefile
        !            46: echo bundling
        !            47: (echo mkdir math fio libc; bundle `find . -type f -print`) > ../mk.bundle
        !            48: cd ..
        !            49: ls -l mk.bundle

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.