|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T c
Length: 580 (0x244) Types: TextFile Names: »convert«
└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12 └─⟦c6be2784f⟧ »web2c-5.84b.tar.Z« └─⟦5800b1b62⟧ └─⟦this⟧ »src-5.84b/common/convert« └─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12 └─⟦63303ae94⟧ »unix3.14/TeX3.14.tar.Z« └─⟦c58930e5c⟧ └─⟦this⟧ »TeX3.14/common/convert«
#!/bin/sh # Convert WEB programs not needing special treatment to C. # # $1 is the Pascal file to be converted. # $2 is the C file to be created. # $3, if present, is extended with .h, and #included in the C file, and # extended with .defines, and prepended along with the common # definitions. # pascalfile=$1 basefile=`basename $1 .p` cfile=$2 hfile=../common/extra.h defnfile= if test $# -eq 3 then hfile=$3.h defnfile=$3.defines fi cat ../common/common.defines $defnfile $pascalfile \ | ../web2c/web2c -h$hfile -c$basefile \ | ../web2c/fixwrites $basefile > $cfile