This makefile makes copies of the SGML source code for each driver file, creating driver-specific IDs. The new files get put into a subdirectory called bookset/. For more information, see the Cascade Driver manuals section of the chapter on Special Organization.
This makefile is located at doc/o/cogent-set/copydrivers.mak.
# Makefile # # This makefile that is included in the doc/o/cogent-set Makefile and # is used with the copydrivers.sh script to pre-process the driver # files. Together they copy all the driver files into the bookset/ # subdirectory of each doc/i/*driver/ directory, adding a two-letter, # driver-specific prefix to their IDs so there will be no ID clash # within the bookset. copydriverfiles: # Copy all generic files into the gendriver/bookset/ subdirectory, # adding a gn to their IDs. (cd ../../i/gendriver; \ for f in *_*.sgml; do \ sed $$f -e 's/-dr/-drgn/g' | \ sed -e 's/dr-/drgn-/g' | \ sed -e 's/-drgnap/-drap/g' > bookset/$$f; \ done; \ sed wrapper.sgml -e 's/-dr/-drgn/g' | \ sed -e 's/dr-/drgn-/g' | \ sed -e 's/drgngn-/drgn-/g' > bookset/wrapper.sgml) # Copy all generic files into the cfdriver/bookset/ subdirectory # excluding the wrapper, adding a cf to their IDs. (cd ../../i/gendriver; \ for f in *_*.sgml; do \ sed $$f -e 's/-dr/-drcf/g' | \ sed -e 's/dr-/drcf-/g' | \ sed -e 's/-drcfap/-drap/g' > ../cfdriver/bookset/$$f; \ done;) # Copy all CIF files into the cfdriver/bookset subdirectory, # adding a cf to their IDs. (cd ../../i/cfdriver; \ for f in *_*.sgml; do \ sed $$f -e 's/-dr/-drcf/g' | \ sed -e 's/dr-/drcf-/g' | \ sed -e 's/-drcfap/-drap/g' > bookset/$$f; \ done; \ sed wrapper.sgml -e 's/-dr/-drcf/g' | \ sed -e 's/dr-/drcf-/g' | \ sed -e 's/-drcfcf/-drcf/g' | \ sed -e 's/-drcfap/-drap/g' > bookset/wrapper.sgml) # Copy all generic files into the dndriver/bookset/ subdirectory # excluding the wrapper, adding a dn to their IDs. (cd ../../i/gendriver; \ for f in *_*.sgml; do \ sed $$f -e 's/-dr/-drdn/g' | \ sed -e 's/dr-/drdn-/g' | \ sed -e 's/-drdnap/-drap/g' > ../dndriver/bookset/$$f; \ done;) # Copy all 5136DN files into the dndriver/bookset subdirectory, # adding a dn to their IDs. (cd ../../i/dndriver; \ for f in *_*.sgml; do \ sed $$f -e 's/-dr/-drdn/g' | \ sed -e 's/dr-/drdn-/g' | \ sed -e 's/-drdnap/-drap/g' > bookset/$$f; \ done; \ sed wrapper.sgml -e 's/-dr/-drdn/g' | \ sed -e 's/dr-/drdn-/g' | \ sed -e 's/-drdndn/-drdn/g' | \ sed -e 's/-drdnap/-drap/g' > bookset/wrapper.sgml) # Copy all generic files into the pbdriver/bookset/ subdirectory # excluding the wrapper, adding a pb to their IDs. (cd ../../i/gendriver; \ for f in *_*.sgml; do \ sed $$f -e 's/-dr/-drpb/g' | \ sed -e 's/dr-/drpb-/g' | \ sed -e 's/-drpbap/-drap/g' > ../pbdriver/bookset/$$f; \ done;) # Copy all 5136PB files into the pbdriver/bookset subdirectory, # adding a pb to their IDs. (cd ../../i/pbdriver; \ for f in *_*.sgml; do \ sed $$f -e 's/-dr/-drpb/g' | \ sed -e 's/dr-/drpb-/g' | \ sed -e 's/-drpbap/-drap/g' > bookset/$$f; \ done; \ sed wrapper.sgml -e 's/-dr/-drpb/g' | \ sed -e 's/dr-/drpb-/g' | \ sed -e 's/-drpbpb/-drpb/g' | \ sed -e 's/-drpbap/-drap/g' > bookset/wrapper.sgml) #Use for ignoring 'Insert-driver' etc. types of situations. #sed re_activeLength.sgml -e 's/-dr\([^<>]*\">\)/-drdn\1/g'
Copyright © 1995-2004 by Cogent Real-Time Systems, Inc. All rights reserved.