Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!hplabs!hp-pcd!hpcvlx!ben From: ben@hpcvlx.HP.COM (Benjamin Ellsworth) Newsgroups: comp.windows.x Subject: Re: HP widget set Message-ID: <1610018@hpcvlx.HP.COM> Date: 17 May 88 20:03:43 GMT References: <8805032150.AA07809@EXPO.LCS.MIT.EDU> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 261 # This is a shell archive. Remove anything before this line, # then unpack it by saving it in a file and typing "sh file". # # Wrapped by ben at hpcvlx on Tue May 17 12:59:44 1988 # # This archive contains: # doc/Xw/Makefile doc/Xw/man3/Makefile # LANG=""; export LANG echo x - doc/Xw/Makefile cat >doc/Xw/Makefile <<'@EOF' # HP Learning Products Department at CWO # Makefile for HP Xwidgets V11R1 Documentation # PAGES= SHELL=/bin/sh RLP=screamer # Remote system with eroff and laser printer #BIN=./bin/ BIN=../bin/ MAN=man3 CAT=cat3 MSRC=../macros SH=remsh $(RLP) PREP= pic | tbl NPREP= $(BIN)nopic | tbl -TX MACRO=-mm PTYPE= -Tlj+.2 TMACRO=$(MACRO) $(PTYPE) RTROFF= troff TROFF= eroff NOROFF= troff $(MACRO) $(PTYPE) -o3- >/dev/null NROFF= nroff TMPIDX= conidx RM=rm -f CLEAN=$(RM) $(TMPIDX) .SUFFIXES: .SUFFIXES: .m .n .p .I .T .i .t .s # # Create spell check (.s) files from macro files (.m) # .m.s: spell +$(MSRC)/spell_list $< > $@ # # Create table of contents files (.t) for troff from macro files (.m) # .m.T: $(BIN)soelim $< | $(PREP) | $(NOROFF) 2> $(TMPIDX) cat $(TMPIDX) | $(BIN)splitit -n $* $(CLEAN) # # Create index files (.i) for troff from macro files (.m) # .m.I: $(BIN)soelim $< | $(PREP) | $(NOROFF) 2> $(TMPIDX) cat $(TMPIDX) | $(BIN)splitit -n $* $(CLEAN) # # Create table of contents files (.u) for nroff from macro files (.m) # .m.t: $(BIN)soelim $< | $(NPREP) | $(NROFF) $(MACRO) 1>/dev/null 2> $(TMPIDX) cat $(TMPIDX) | $(BIN)splitit -a -n $* $(CLEAN) # # Create index files (.j) for nroff from macro files (.m) # .m.i: $(BIN)soelim $< | $(NPREP) | $(NROFF) $(MACRO) 1>/dev/null 2> $(TMPIDX) cat $(TMPIDX) | $(BIN)splitit -a -n $* $(CLEAN) # # Create troff'd dif format chapter files from macro (.m) files # .m.p: $(BIN)soelim $< | $(PREP) | $(RTROFF) $(TMACRO) 2> /dev/null >$@ # # Create troff'd chapter files from macro (.m) files # .m: $(BIN)soelim $< | $(PREP) | $(TROFF) $(TMACRO) 2> $(TMPIDX) cat $(TMPIDX) | $(BIN)splitit -n $* $(CLEAN) touch $@ # # Create nroff'd chapter files (.n) from base (.m) files # (also create nroff index (.j) and contents (.u) files) # .m.n: $(BIN)soelim $< | $(NPREP) | $(NROFF) $(MACRO) > $@ 2> $(TMPIDX) cat $(TMPIDX) | $(BIN)splitit -a -n $* $(CLEAN) FILES= ch01 ch02 ch03 ch04 ch05 ch06 ch07 appendixA cover MFILES= ch01.m ch02.m ch03.m ch04.m ch05.m ch06.m ch07.m appendixA.m cover.m NFILES= ch01.n ch02.n ch03.n ch04.n ch05.n ch06.n ch07.n appendixA.n manpages.n IFILES= ch01.I ch02.I ch03.I ch04.I ch05.I ch06.I ch07.I appendixA.I TFILES= ch01.T ch02.T ch03.T ch04.T ch05.T ch06.T ch07.T appendixA.T NTFILES=ch01.t ch02.t ch03.t ch04.t ch05.t ch06.t ch07.t appendixA.t NIFILES=ch01.i ch02.i ch03.i ch04.i ch05.i ch06.i ch07.i appendixA.i ANFILES= cover.n contents.n $(NFILES) index.n all: paper manpages base: $(MFILES) paper: $(MFILES) $(FILES) index contents paper.roff: $(MFILES) $(NFILES) contents.n index.n cover.n cat $(ANFILES) | col -x > $@ manpages: $(MAN) cd $(MAN);\ $(MAKE) troffman "TROFF=$(TROFF) -man $(PTYPE)" "MSRC=`pwd`/$(MSRC)" manpages.n: $(MAN) cd $(MAN); $(MAKE) catman "NROFF=$(NROFF) -man" "MSRC=`pwd`/$(MSRC)" cd $(CAT); $(RM) $@ ; for i in `cat pageorder`; do\ cat $$i.3x >> $@ ;\ done mv $(CAT)/$@ . index: $(MSRC)/index.head $(IFILES) $(BIN)preIsort $(IFILES) |\ sort -u +2df +0d -1 +1n -2 |\ $(BIN)postIsort |\ $(BIN)premkindex |\ $(BIN)mkindex | sed s/\\\\\\\\/\\\\e/g >index $(TROFF) $(TMACRO) $(MSRC)/index.head index contents: $(FILES) $(MSRC)/contents.head (tbl $(MSRC)/contents.head $(TFILES);\ echo ".eC") | $(TROFF) $(TMACRO) touch $@ index.n: $(MSRC)/index.head $(NIFILES) $(BIN)preIsort $(NIFILES) |\ sort -u +2df +0d -1 +1n -2 |\ $(BIN)postIsort |\ $(BIN)premkindex |\ $(BIN)mkindex | sed s/\\\\\\\\/\\\\e/g >index.tmp cat $(MSRC)/index.head index.tmp | $(NROFF) $(MACRO) | col -x > $@ contents.n: $(NTFILES) $(MSRC)/contents.head (tbl $(MSRC)/contents.head $(NTFILES);\ echo ".eC") | $(NROFF) $(MACRO) | col -x > $@ appendixA.m: appendixA.b $(MAN) cd $(MAN); $(MAKE) base (cd $(MAN); ./MakeManIdx `ls *.3x`) > appendix.tmp cat appendixA.b appendix.tmp | $(BIN)soelim -p $(MSRC) > $@ rm appendix.tmp clean:: cd $(MAN); $(MAKE) clean $(RM) $(FILES) *.tmp contents index $(RM) *.[IiTtns] @EOF chmod 644 doc/Xw/Makefile unpacker=/tmp/unpack$$ ; compile="y" for uudecode in /bin/uudecode /usr/bin/uudecode /usr/local/bin/uudecode /usr/contrib/bin/uudecode /etc/uudecode /usr/public/bin/uudecode /usr/ucb/bin/uudecode do if test -s $uudecode then unpacker=$uudecode ; compile="n" ; break fi done pwd=`pwd`; cd /tmp if test $compile = "y" then cat >$unpacker.c <<'EOF' #include #define DEC(c) (((c) - ' ') & 077) main() { int n; char dest[128], a,b,c,d; scanf("begin %o ", &n); gets(dest); if (freopen(dest, "w", stdout) == NULL) { perror(dest); exit(1); } while ((n=getchar()) != EOF && (n=DEC(n))!=0) { while (n>0) { a = DEC(getchar()); b = DEC(getchar()); c = DEC(getchar()); d = DEC(getchar()); if (n-- > 0) putchar(a << 2 | b >> 4); if (n-- > 0) putchar(b << 4 | c >> 2); if (n-- > 0) putchar(c << 6 | d); } n=getchar(); } exit(0); } EOF echo Compiling unpacker for non-ascii files cc -o $unpacker $unpacker.c 1>/dev/null 2>&1 rm $unpacker.c fi cd $pwd echo x - doc/Xw/man3/Makefile '[non-ASCII]' $unpacker <<'@eof' begin 666 doc/Xw/man3/Makefile M(R$@+V)I;B]M86ME("UF"B,*(R!-86ME9FEL92!T;R!C#H*"6-A=" D M/"!\("0H4%)%4"D@?" D*%123T9&*0H)=&]U8V@@)$ *"E!!1T53/2 )6'=! M"!8=T)";V%R9"XS>"!8=T)U='1O;BXS>"!8=T-A"!<"@D)6'=&;W)M+C-X(%AW26UA9T5D:70N,W@@6'=, M:7-T+C-X(%AW36%N86=E"!8=TUE;G5"=&XN,W@@7 H)"5AW365N=4UG M"!8=TUE;G5086YE+C-X(%AW4&%N96PN,W@@6'=0;W!U<$UG"!< M"@D)6'=0"!8=U!U;&QD;W=N+C-X(%AW4$)U='1O;BXS>"!8 M=U)#36%N86=R+C-X(%P*"0E8=U)E9T-O;G9R+C-X(%AW4V%S:"XS>"!8=U-C M"!8=U-497AT+C-X(%P*"0E8=U-7:6YD M;W"!8=U1I=&QE0F%R+C-X(%AW5&]G9VQE+C-X M(%AW5F%L=6%T;W(N,W@@7 H)"5AW5E!A;F5D+C-X"@I44$%'15,]"5AW07)R M;W<@6'="0F]A