home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: 2055
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail text
| default
| |
99%
| file
| C source text
| default
| |
98%
| file
| makefile script text
| default
| |
97%
| file
| C source, ASCII text
| default
| |
100%
| TrID
| E-Mail message (Var. 2)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 62 6f | 79 74 65 72 40 66 73 74 |From: bo|yter@fst|
|00000010| 63 2d 63 68 76 69 6c 6c | 65 2e 61 72 6d 79 2e 6d |c-chvill|e.army.m|
|00000020| 69 6c 20 28 4d 61 6a 20 | 42 72 69 61 6e 20 42 6f |il (Maj |Brian Bo|
|00000030| 79 74 65 72 29 0a 4e 65 | 77 73 67 72 6f 75 70 73 |yter).Ne|wsgroups|
|00000040| 3a 20 61 6c 74 2e 73 6f | 75 72 63 65 73 2c 61 6c |: alt.so|urces,al|
|00000050| 74 2e 73 79 73 2e 73 75 | 6e 0a 53 75 62 6a 65 63 |t.sys.su|n.Subjec|
|00000060| 74 3a 20 78 6c 70 72 20 | 2d 20 70 72 69 6e 74 20 |t: xlpr |- print |
|00000070| 73 65 6c 65 63 74 65 64 | 20 74 65 78 74 0a 4d 65 |selected| text.Me|
|00000080| 73 73 61 67 65 2d 49 44 | 3a 20 3c 31 39 39 30 4e |ssage-ID|: <1990N|
|00000090| 6f 76 31 34 2e 31 38 33 | 31 30 33 2e 31 37 38 33 |ov14.183|103.1783|
|000000a0| 32 40 66 73 74 63 2d 63 | 68 76 69 6c 6c 65 2e 61 |2@fstc-c|hville.a|
|000000b0| 72 6d 79 2e 6d 69 6c 3e | 0a 44 61 74 65 3a 20 31 |rmy.mil>|.Date: 1|
|000000c0| 34 20 4e 6f 76 20 39 30 | 20 31 38 3a 33 31 3a 30 |4 Nov 90| 18:31:0|
|000000d0| 33 20 47 4d 54 0a 0a 4f | 6e 65 20 6f 66 20 74 68 |3 GMT..O|ne of th|
|000000e0| 65 20 68 61 6e 64 69 65 | 73 74 20 66 65 61 74 75 |e handie|st featu|
|000000f0| 72 65 73 20 75 6e 64 65 | 72 20 53 75 6e 76 69 65 |res unde|r Sunvie|
|00000100| 77 20 77 61 73 20 74 68 | 65 20 61 62 69 6c 69 74 |w was th|e abilit|
|00000110| 79 20 74 6f 20 73 65 6c | 65 63 74 0a 74 65 78 74 |y to sel|ect.text|
|00000120| 20 6f 6e 20 74 68 65 20 | 73 63 72 65 65 6e 2c 20 | on the |screen, |
|00000130| 61 6e 64 20 74 68 65 6e | 20 70 72 69 6e 74 20 74 |and then| print t|
|00000140| 68 61 74 20 74 65 78 74 | 20 28 69 6e 20 74 68 65 |hat text| (in the|
|00000150| 20 72 6f 6f 74 6d 65 6e | 75 20 79 6f 75 20 68 61 | rootmen|u you ha|
|00000160| 64 0a 74 6f 20 73 65 6c | 65 63 74 20 22 53 65 72 |d.to sel|ect "Ser|
|00000170| 76 69 63 65 73 22 20 2d | 3e 20 22 50 72 69 6e 74 |vices" -|> "Print|
|00000180| 69 6e 67 22 20 2d 3e 20 | 22 50 72 69 6e 74 20 53 |ing" -> |"Print S|
|00000190| 65 6c 65 63 74 65 64 20 | 54 65 78 74 22 29 2e 0a |elected |Text")..|
|000001a0| 20 0a 54 68 61 74 20 66 | 65 61 74 75 72 65 20 77 | .That f|eature w|
|000001b0| 61 73 20 6e 6f 74 20 69 | 6e 63 6c 75 64 65 64 20 |as not i|ncluded |
|000001c0| 69 6e 20 74 68 65 20 6d | 6f 76 65 20 66 72 6f 6d |in the m|ove from|
|000001d0| 20 53 75 6e 76 69 65 77 | 20 74 6f 20 4f 70 65 6e | Sunview| to Open|
|000001e0| 77 69 6e 64 6f 77 73 2e | 0a 78 6c 70 72 20 63 61 |windows.|.xlpr ca|
|000001f0| 6e 20 62 65 20 75 73 65 | 64 20 74 6f 20 70 72 69 |n be use|d to pri|
|00000200| 6e 74 20 74 68 65 20 63 | 6f 6e 74 65 6e 74 73 20 |nt the c|ontents |
|00000210| 6f 66 20 74 68 65 20 43 | 4c 49 50 42 4f 41 52 44 |of the C|LIPBOARD|
|00000220| 20 62 75 66 66 65 72 2e | 0a 20 20 0a 23 21 2f 62 | buffer.|. .#!/b|
|00000230| 69 6e 2f 73 68 0a 23 20 | 54 68 69 73 20 69 73 20 |in/sh.# |This is |
|00000240| 61 20 73 68 65 6c 6c 20 | 61 72 63 68 69 76 65 20 |a shell |archive |
|00000250| 28 70 72 6f 64 75 63 65 | 64 20 62 79 20 73 68 61 |(produce|d by sha|
|00000260| 72 20 33 2e 34 39 29 0a | 23 20 54 6f 20 65 78 74 |r 3.49).|# To ext|
|00000270| 72 61 63 74 20 74 68 65 | 20 66 69 6c 65 73 20 66 |ract the| files f|
|00000280| 72 6f 6d 20 74 68 69 73 | 20 61 72 63 68 69 76 65 |rom this| archive|
|00000290| 2c 20 73 61 76 65 20 69 | 74 20 74 6f 20 61 20 66 |, save i|t to a f|
|000002a0| 69 6c 65 2c 20 72 65 6d | 6f 76 65 0a 23 20 65 76 |ile, rem|ove.# ev|
|000002b0| 65 72 79 74 68 69 6e 67 | 20 61 62 6f 76 65 20 74 |erything| above t|
|000002c0| 68 65 20 22 21 2f 62 69 | 6e 2f 73 68 22 20 6c 69 |he "!/bi|n/sh" li|
|000002d0| 6e 65 20 61 62 6f 76 65 | 2c 20 61 6e 64 20 74 79 |ne above|, and ty|
|000002e0| 70 65 20 22 73 68 20 66 | 69 6c 65 5f 6e 61 6d 65 |pe "sh f|ile_name|
|000002f0| 22 2e 0a 23 0a 23 20 6d | 61 64 65 20 31 31 2f 31 |"..#.# m|ade 11/1|
|00000300| 34 2f 31 39 39 30 20 31 | 37 3a 35 32 20 55 54 43 |4/1990 1|7:52 UTC|
|00000310| 20 62 79 20 72 6f 6f 74 | 40 73 67 31 2d 66 73 74 | by root|@sg1-fst|
|00000320| 63 2e 64 6f 64 69 69 73 | 0a 23 20 53 6f 75 72 63 |c.dodiis|.# Sourc|
|00000330| 65 20 64 69 72 65 63 74 | 6f 72 79 20 2f 75 73 72 |e direct|ory /usr|
|00000340| 2f 73 68 61 72 65 2f 6c | 6f 63 61 6c 2f 73 72 63 |/share/l|ocal/src|
|00000350| 2f 78 6c 70 72 0a 23 0a | 23 20 65 78 69 73 74 69 |/xlpr.#.|# existi|
|00000360| 6e 67 20 66 69 6c 65 73 | 20 77 69 6c 6c 20 4e 4f |ng files| will NO|
|00000370| 54 20 62 65 20 6f 76 65 | 72 77 72 69 74 74 65 6e |T be ove|rwritten|
|00000380| 20 75 6e 6c 65 73 73 20 | 2d 63 20 69 73 20 73 70 | unless |-c is sp|
|00000390| 65 63 69 66 69 65 64 0a | 23 0a 23 20 54 68 69 73 |ecified.|#.# This|
|000003a0| 20 73 68 61 72 20 63 6f | 6e 74 61 69 6e 73 3a 0a | shar co|ntains:.|
|000003b0| 23 20 6c 65 6e 67 74 68 | 20 20 6d 6f 64 65 20 20 |# length| mode |
|000003c0| 20 20 20 20 20 6e 61 6d | 65 0a 23 20 2d 2d 2d 2d | nam|e.# ----|
|000003d0| 2d 2d 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 20 2d 2d |-- -----|----- --|
|000003e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000003f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000400| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 23 20 20 20 20 32 36 |--------|.# 26|
|00000410| 38 20 2d 72 77 2d 72 2d | 2d 72 2d 2d 20 4d 61 6b |8 -rw-r-|-r-- Mak|
|00000420| 65 66 69 6c 65 0a 23 20 | 20 20 20 36 36 35 20 2d |efile.# | 665 -|
|00000430| 72 77 2d 72 2d 2d 72 2d | 2d 20 52 45 41 44 4d 45 |rw-r--r-|- README|
|00000440| 0a 23 20 20 20 31 30 38 | 33 20 2d 72 77 2d 72 2d |.# 108|3 -rw-r-|
|00000450| 2d 72 2d 2d 20 63 6f 70 | 79 72 69 67 68 74 2e 68 |-r-- cop|yright.h|
|00000460| 0a 23 20 20 20 20 36 35 | 32 20 2d 72 77 2d 72 2d |.# 65|2 -rw-r-|
|00000470| 2d 72 2d 2d 20 78 6c 70 | 72 2e 31 0a 23 20 20 20 |-r-- xlp|r.1.# |
|00000480| 31 31 36 33 20 2d 72 77 | 2d 72 2d 2d 72 2d 2d 20 |1163 -rw|-r--r-- |
|00000490| 78 6c 70 72 2e 63 0a 23 | 0a 23 20 3d 3d 3d 3d 3d |xlpr.c.#|.# =====|
|000004a0| 3d 3d 3d 3d 3d 3d 3d 3d | 20 4d 61 6b 65 66 69 6c |========| Makefil|
|000004b0| 65 20 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |e ======|========|
|000004c0| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 4d 61 6b |.if test| -f 'Mak|
|000004d0| 65 66 69 6c 65 27 20 2d | 61 20 58 22 24 31 22 20 |efile' -|a X"$1" |
|000004e0| 21 3d 20 58 22 2d 63 22 | 3b 20 74 68 65 6e 0a 09 |!= X"-c"|; then..|
|000004f0| 65 63 68 6f 20 27 78 20 | 2d 20 73 6b 69 70 70 69 |echo 'x |- skippi|
|00000500| 6e 67 20 4d 61 6b 65 66 | 69 6c 65 20 28 46 69 6c |ng Makef|ile (Fil|
|00000510| 65 20 61 6c 72 65 61 64 | 79 20 65 78 69 73 74 73 |e alread|y exists|
|00000520| 29 27 0a 65 6c 73 65 0a | 65 63 68 6f 20 27 78 20 |)'.else.|echo 'x |
|00000530| 2d 20 65 78 74 72 61 63 | 74 69 6e 67 20 4d 61 6b |- extrac|ting Mak|
|00000540| 65 66 69 6c 65 20 28 54 | 65 78 74 29 27 0a 73 65 |efile (T|ext)'.se|
|00000550| 64 20 27 73 2f 5e 58 2f | 2f 27 20 3c 3c 20 27 53 |d 's/^X/|/' << 'S|
|00000560| 48 41 52 5f 45 4f 46 27 | 20 3e 20 27 4d 61 6b 65 |HAR_EOF'| > 'Make|
|00000570| 66 69 6c 65 27 20 26 26 | 0a 43 46 4c 41 47 53 3d |file' &&|.CFLAGS=|
|00000580| 2d 4f 0a 42 49 4e 44 49 | 52 3d 2f 75 73 72 2f 6c |-O.BINDI|R=/usr/l|
|00000590| 6f 63 61 6c 2f 62 69 6e | 0a 4d 41 4e 44 49 52 3d |ocal/bin|.MANDIR=|
|000005a0| 2f 75 73 72 2f 6c 6f 63 | 61 6c 2f 6d 61 6e 2f 6d |/usr/loc|al/man/m|
|000005b0| 61 6e 31 0a 58 0a 61 6c | 6c 3a 09 78 6c 70 72 0a |an1.X.al|l:.xlpr.|
|000005c0| 58 0a 78 6c 70 72 3a 09 | 78 6c 70 72 2e 6f 0a 58 |X.xlpr:.|xlpr.o.X|
|000005d0| 09 63 63 20 24 7b 43 46 | 4c 41 47 53 7d 20 2d 6f |.cc ${CF|LAGS} -o|
|000005e0| 20 78 6c 70 72 20 78 6c | 70 72 2e 6f 20 2d 6c 58 | xlpr xl|pr.o -lX|
|000005f0| 74 20 2d 6c 58 31 31 0a | 58 0a 63 6c 65 61 6e 3a |t -lX11.|X.clean:|
|00000600| 0a 58 09 72 6d 20 2d 66 | 20 2a 2e 6f 20 63 6f 72 |.X.rm -f| *.o cor|
|00000610| 65 20 78 6c 70 72 0a 58 | 0a 69 6e 73 74 61 6c 6c |e xlpr.X|.install|
|00000620| 3a 20 78 6c 70 72 0a 58 | 09 69 6e 73 74 61 6c 6c |: xlpr.X|.install|
|00000630| 20 2d 6f 20 72 6f 6f 74 | 20 2d 67 20 77 68 65 65 | -o root| -g whee|
|00000640| 6c 20 2d 6d 20 37 35 35 | 20 78 6c 70 72 20 20 20 |l -m 755| xlpr |
|00000650| 24 7b 42 49 4e 44 49 52 | 7d 0a 58 09 69 6e 73 74 |${BINDIR|}.X.inst|
|00000660| 61 6c 6c 20 2d 6f 20 72 | 6f 6f 74 20 2d 67 20 77 |all -o r|oot -g w|
|00000670| 68 65 65 6c 20 2d 6d 20 | 36 34 34 20 78 6c 70 72 |heel -m |644 xlpr|
|00000680| 2e 31 20 24 7b 4d 41 4e | 44 49 52 7d 0a 53 48 41 |.1 ${MAN|DIR}.SHA|
|00000690| 52 5f 45 4f 46 0a 63 68 | 6d 6f 64 20 30 36 34 34 |R_EOF.ch|mod 0644|
|000006a0| 20 4d 61 6b 65 66 69 6c | 65 20 7c 7c 0a 65 63 68 | Makefil|e ||.ech|
|000006b0| 6f 20 27 72 65 73 74 6f | 72 65 20 6f 66 20 4d 61 |o 'resto|re of Ma|
|000006c0| 6b 65 66 69 6c 65 20 66 | 61 69 6c 65 64 27 0a 57 |kefile f|ailed'.W|
|000006d0| 63 5f 63 3d 22 60 77 63 | 20 2d 63 20 3c 20 27 4d |c_c="`wc| -c < 'M|
|000006e0| 61 6b 65 66 69 6c 65 27 | 60 22 0a 74 65 73 74 20 |akefile'|`".test |
|000006f0| 32 36 38 20 2d 65 71 20 | 22 24 57 63 5f 63 22 20 |268 -eq |"$Wc_c" |
|00000700| 7c 7c 0a 09 65 63 68 6f | 20 27 4d 61 6b 65 66 69 |||..echo| 'Makefi|
|00000710| 6c 65 3a 20 6f 72 69 67 | 69 6e 61 6c 20 73 69 7a |le: orig|inal siz|
|00000720| 65 20 32 36 38 2c 20 63 | 75 72 72 65 6e 74 20 73 |e 268, c|urrent s|
|00000730| 69 7a 65 27 20 22 24 57 | 63 5f 63 22 0a 66 69 0a |ize' "$W|c_c".fi.|
|00000740| 23 20 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 20 |# ======|======= |
|00000750| 52 45 41 44 4d 45 20 3d | 3d 3d 3d 3d 3d 3d 3d 3d |README =|========|
|00000760| 3d 3d 3d 3d 3d 0a 69 66 | 20 74 65 73 74 20 2d 66 |=====.if| test -f|
|00000770| 20 27 52 45 41 44 4d 45 | 27 20 2d 61 20 58 22 24 | 'README|' -a X"$|
|00000780| 31 22 20 21 3d 20 58 22 | 2d 63 22 3b 20 74 68 65 |1" != X"|-c"; the|
|00000790| 6e 0a 09 65 63 68 6f 20 | 27 78 20 2d 20 73 6b 69 |n..echo |'x - ski|
|000007a0| 70 70 69 6e 67 20 52 45 | 41 44 4d 45 20 28 46 69 |pping RE|ADME (Fi|
|000007b0| 6c 65 20 61 6c 72 65 61 | 64 79 20 65 78 69 73 74 |le alrea|dy exist|
|000007c0| 73 29 27 0a 65 6c 73 65 | 0a 65 63 68 6f 20 27 78 |s)'.else|.echo 'x|
|000007d0| 20 2d 20 65 78 74 72 61 | 63 74 69 6e 67 20 52 45 | - extra|cting RE|
|000007e0| 41 44 4d 45 20 28 54 65 | 78 74 29 27 0a 73 65 64 |ADME (Te|xt)'.sed|
|000007f0| 20 27 73 2f 5e 58 2f 2f | 27 20 3c 3c 20 27 53 48 | 's/^X//|' << 'SH|
|00000800| 41 52 5f 45 4f 46 27 20 | 3e 20 27 52 45 41 44 4d |AR_EOF' |> 'READM|
|00000810| 45 27 20 26 26 0a 58 0a | 78 6c 70 72 20 2d 20 70 |E' &&.X.|xlpr - p|
|00000820| 72 69 6e 74 20 63 6f 6e | 74 65 6e 74 73 20 6f 66 |rint con|tents of|
|00000830| 20 43 4c 49 50 42 4f 41 | 52 44 0a 58 0a 54 68 69 | CLIPBOA|RD.X.Thi|
|00000840| 73 20 70 72 6f 67 72 61 | 6d 20 67 65 74 73 20 74 |s progra|m gets t|
|00000850| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 74 |he conte|nts of t|
|00000860| 68 65 20 43 4c 49 50 42 | 4f 41 52 44 0a 61 6e 64 |he CLIPB|OARD.and|
|00000870| 20 70 69 70 65 73 20 69 | 74 20 74 6f 20 74 68 65 | pipes i|t to the|
|00000880| 20 70 72 69 6e 74 65 72 | 2e 20 54 68 69 73 20 77 | printer|. This w|
|00000890| 61 73 20 61 20 66 65 61 | 74 75 72 65 0a 75 6e 64 |as a fea|ture.und|
|000008a0| 65 72 20 73 75 6e 76 69 | 65 77 20 77 68 69 63 68 |er sunvi|ew which|
|000008b0| 20 77 61 73 20 64 65 6c | 65 74 65 64 20 69 6e 20 | was del|eted in |
|000008c0| 4f 70 65 6e 77 69 6e 2e | 0a 58 0a 54 6f 20 75 73 |Openwin.|.X.To us|
|000008d0| 65 20 78 6c 70 72 2c 20 | 73 65 6c 65 63 74 20 74 |e xlpr, |select t|
|000008e0| 68 65 20 74 65 78 74 20 | 75 73 69 6e 67 20 74 68 |he text |using th|
|000008f0| 65 20 6c 65 66 74 20 61 | 6e 64 0a 6d 69 64 64 6c |e left a|nd.middl|
|00000900| 65 20 6d 6f 75 73 65 20 | 62 75 74 74 6f 6e 73 2c |e mouse |buttons,|
|00000910| 20 68 69 74 20 22 63 6f | 70 79 22 20 28 4c 36 20 | hit "co|py" (L6 |
|00000920| 6f 6e 20 74 68 65 20 53 | 75 6e 2d 34 0a 6b 65 79 |on the S|un-4.key|
|00000930| 62 6f 61 72 64 29 2c 20 | 67 6f 20 74 6f 20 61 6e |board), |go to an|
|00000940| 6f 74 68 65 72 20 73 68 | 65 6c 6c 74 6f 6f 6c 20 |other sh|elltool |
|00000950| 61 6e 64 20 74 79 70 65 | 20 22 78 6c 70 72 22 2e |and type| "xlpr".|
|00000960| 0a 78 6c 70 72 20 63 61 | 6e 20 61 6c 73 6f 20 62 |.xlpr ca|n also b|
|00000970| 65 20 61 64 64 65 64 20 | 74 6f 20 79 6f 75 72 20 |e added |to your |
|00000980| 72 6f 6f 74 6d 65 6e 75 | 2e 0a 58 0a 54 68 65 20 |rootmenu|..X.The |
|00000990| 70 72 6f 67 72 61 6d 20 | 68 61 73 20 6f 6e 6c 79 |program |has only|
|000009a0| 20 62 65 65 6e 20 74 65 | 73 74 65 64 20 6f 6e 20 | been te|sted on |
|000009b0| 61 20 53 70 61 72 63 73 | 74 61 74 69 6f 6e 0a 77 |a Sparcs|tation.w|
|000009c0| 69 74 68 20 53 75 6e 4f | 53 20 34 2e 31 20 61 6e |ith SunO|S 4.1 an|
|000009d0| 64 20 4f 70 65 6e 77 69 | 6e 20 32 2e 30 2e 0a 58 |d Openwi|n 2.0..X|
|000009e0| 0a 54 68 65 72 65 20 69 | 73 20 61 20 6c 69 6d 69 |.There i|s a limi|
|000009f0| 74 20 74 6f 20 74 68 65 | 20 73 69 7a 65 20 6f 66 |t to the| size of|
|00000a00| 20 74 68 65 20 43 4c 49 | 50 42 4f 41 52 44 20 79 | the CLI|PBOARD y|
|00000a10| 6f 75 0a 63 61 6e 20 70 | 61 73 73 20 77 69 74 68 |ou.can p|ass with|
|00000a20| 20 74 68 69 73 20 70 72 | 6f 67 72 61 6d 2c 20 62 | this pr|ogram, b|
|00000a30| 75 74 20 49 20 64 6f 6e | 27 74 20 6b 6e 6f 77 20 |ut I don|'t know |
|00000a40| 77 68 61 74 0a 69 74 20 | 69 73 2e 0a 58 0a 53 65 |what.it |is..X.Se|
|00000a50| 6e 64 20 61 6c 6c 20 63 | 6f 6d 70 6c 61 69 6e 74 |nd all c|omplaint|
|00000a60| 73 20 74 6f 20 2f 64 65 | 76 2f 6e 75 6c 6c 2e 0a |s to /de|v/null..|
|00000a70| 49 66 20 79 6f 75 20 68 | 61 76 65 20 69 6d 70 72 |If you h|ave impr|
|00000a80| 6f 76 65 6d 65 6e 74 73 | 2c 20 73 65 6e 64 20 74 |ovements|, send t|
|00000a90| 68 65 6d 20 74 6f 3a 0a | 62 6f 79 74 65 72 40 66 |hem to:.|boyter@f|
|00000aa0| 73 74 63 2d 63 68 76 69 | 6c 6c 65 2e 61 72 6d 79 |stc-chvi|lle.army|
|00000ab0| 2e 6d 69 6c 0a 53 48 41 | 52 5f 45 4f 46 0a 63 68 |.mil.SHA|R_EOF.ch|
|00000ac0| 6d 6f 64 20 30 36 34 34 | 20 52 45 41 44 4d 45 20 |mod 0644| README |
|00000ad0| 7c 7c 0a 65 63 68 6f 20 | 27 72 65 73 74 6f 72 65 |||.echo |'restore|
|00000ae0| 20 6f 66 20 52 45 41 44 | 4d 45 20 66 61 69 6c 65 | of READ|ME faile|
|00000af0| 64 27 0a 57 63 5f 63 3d | 22 60 77 63 20 2d 63 20 |d'.Wc_c=|"`wc -c |
|00000b00| 3c 20 27 52 45 41 44 4d | 45 27 60 22 0a 74 65 73 |< 'READM|E'`".tes|
|00000b10| 74 20 36 36 35 20 2d 65 | 71 20 22 24 57 63 5f 63 |t 665 -e|q "$Wc_c|
|00000b20| 22 20 7c 7c 0a 09 65 63 | 68 6f 20 27 52 45 41 44 |" ||..ec|ho 'READ|
|00000b30| 4d 45 3a 20 6f 72 69 67 | 69 6e 61 6c 20 73 69 7a |ME: orig|inal siz|
|00000b40| 65 20 36 36 35 2c 20 63 | 75 72 72 65 6e 74 20 73 |e 665, c|urrent s|
|00000b50| 69 7a 65 27 20 22 24 57 | 63 5f 63 22 0a 66 69 0a |ize' "$W|c_c".fi.|
|00000b60| 23 20 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 20 |# ======|======= |
|00000b70| 63 6f 70 79 72 69 67 68 | 74 2e 68 20 3d 3d 3d 3d |copyrigh|t.h ====|
|00000b80| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0a 69 66 20 74 65 |========|==.if te|
|00000b90| 73 74 20 2d 66 20 27 63 | 6f 70 79 72 69 67 68 74 |st -f 'c|opyright|
|00000ba0| 2e 68 27 20 2d 61 20 58 | 22 24 31 22 20 21 3d 20 |.h' -a X|"$1" != |
|00000bb0| 58 22 2d 63 22 3b 20 74 | 68 65 6e 0a 09 65 63 68 |X"-c"; t|hen..ech|
|00000bc0| 6f 20 27 78 20 2d 20 73 | 6b 69 70 70 69 6e 67 20 |o 'x - s|kipping |
|00000bd0| 63 6f 70 79 72 69 67 68 | 74 2e 68 20 28 46 69 6c |copyrigh|t.h (Fil|
|00000be0| 65 20 61 6c 72 65 61 64 | 79 20 65 78 69 73 74 73 |e alread|y exists|
|00000bf0| 29 27 0a 65 6c 73 65 0a | 65 63 68 6f 20 27 78 20 |)'.else.|echo 'x |
|00000c00| 2d 20 65 78 74 72 61 63 | 74 69 6e 67 20 63 6f 70 |- extrac|ting cop|
|00000c10| 79 72 69 67 68 74 2e 68 | 20 28 54 65 78 74 29 27 |yright.h| (Text)'|
|00000c20| 0a 73 65 64 20 27 73 2f | 5e 58 2f 2f 27 20 3c 3c |.sed 's/|^X//' <<|
|00000c30| 20 27 53 48 41 52 5f 45 | 4f 46 27 20 3e 20 27 63 | 'SHAR_E|OF' > 'c|
|00000c40| 6f 70 79 72 69 67 68 74 | 2e 68 27 20 26 26 0a 23 |opyright|.h' &&.#|
|00000c50| 69 66 6e 64 65 66 20 5f | 43 4f 50 59 52 49 47 48 |ifndef _|COPYRIGH|
|00000c60| 54 5f 0a 2f 2a 0a 58 20 | 2a 20 43 6f 70 79 72 69 |T_./*.X |* Copyri|
|00000c70| 67 68 74 20 31 39 39 30 | 2c 20 42 72 69 61 6e 20 |ght 1990|, Brian |
|00000c80| 42 6f 79 74 65 72 0a 58 | 20 2a 0a 58 20 2a 20 50 |Boyter.X| *.X * P|
|00000c90| 65 72 6d 69 73 73 69 6f | 6e 20 74 6f 20 75 73 65 |ermissio|n to use|
|00000ca0| 2c 20 63 6f 70 79 2c 20 | 6d 6f 64 69 66 79 2c 20 |, copy, |modify, |
|00000cb0| 64 69 73 74 72 69 62 75 | 74 65 2c 20 61 6e 64 20 |distribu|te, and |
|00000cc0| 73 65 6c 6c 20 74 68 69 | 73 20 73 6f 66 74 77 61 |sell thi|s softwa|
|00000cd0| 72 65 0a 58 20 2a 20 61 | 6e 64 20 69 74 73 20 64 |re.X * a|nd its d|
|00000ce0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 66 6f 72 |ocumenta|tion for|
|00000cf0| 20 61 6e 79 20 70 75 72 | 70 6f 73 65 20 69 73 20 | any pur|pose is |
|00000d00| 68 65 72 65 62 79 20 67 | 72 61 6e 74 65 64 20 77 |hereby g|ranted w|
|00000d10| 69 74 68 6f 75 74 20 66 | 65 65 2c 0a 58 20 2a 20 |ithout f|ee,.X * |
|00000d20| 70 72 6f 76 69 64 65 64 | 20 74 68 61 74 20 74 68 |provided| that th|
|00000d30| 65 20 61 62 6f 76 65 20 | 63 6f 70 79 72 69 67 68 |e above |copyrigh|
|00000d40| 74 20 6e 6f 74 69 63 65 | 20 61 70 70 65 61 72 20 |t notice| appear |
|00000d50| 69 6e 20 61 6c 6c 20 63 | 6f 70 69 65 73 20 61 6e |in all c|opies an|
|00000d60| 64 0a 58 20 2a 20 74 68 | 61 74 20 62 6f 74 68 20 |d.X * th|at both |
|00000d70| 74 68 61 74 20 63 6f 70 | 79 72 69 67 68 74 20 6e |that cop|yright n|
|00000d80| 6f 74 69 63 65 20 61 6e | 64 20 74 68 69 73 20 70 |otice an|d this p|
|00000d90| 65 72 6d 69 73 73 69 6f | 6e 20 6e 6f 74 69 63 65 |ermissio|n notice|
|00000da0| 20 61 70 70 65 61 72 0a | 58 20 2a 20 69 6e 20 73 | appear.|X * in s|
|00000db0| 75 70 70 6f 72 74 69 6e | 67 20 64 6f 63 75 6d 65 |upportin|g docume|
|00000dc0| 6e 74 61 74 69 6f 6e 2e | 20 20 54 68 65 20 61 75 |ntation.| The au|
|00000dd0| 74 68 6f 72 20 6d 61 6b | 65 73 20 6e 6f 20 72 65 |thor mak|es no re|
|00000de0| 70 72 65 73 65 6e 74 61 | 74 69 6f 6e 73 0a 58 20 |presenta|tions.X |
|00000df0| 2a 20 61 62 6f 75 74 20 | 74 68 65 20 73 75 69 74 |* about |the suit|
|00000e00| 61 62 69 6c 69 74 79 20 | 6f 66 20 74 68 69 73 20 |ability |of this |
|00000e10| 73 6f 66 74 77 61 72 65 | 20 66 6f 72 20 61 6e 79 |software| for any|
|00000e20| 20 70 75 72 70 6f 73 65 | 2e 20 20 49 74 20 69 73 | purpose|. It is|
|00000e30| 0a 58 20 2a 20 70 72 6f | 76 69 64 65 64 20 22 61 |.X * pro|vided "a|
|00000e40| 73 20 69 73 22 20 77 69 | 74 68 6f 75 74 20 65 78 |s is" wi|thout ex|
|00000e50| 70 72 65 73 73 20 6f 72 | 20 69 6d 70 6c 69 65 64 |press or| implied|
|00000e60| 20 77 61 72 72 61 6e 74 | 79 2e 0a 58 20 2a 0a 58 | warrant|y..X *.X|
|00000e70| 20 2a 20 54 48 45 20 41 | 55 54 48 4f 52 20 44 49 | * THE A|UTHOR DI|
|00000e80| 53 43 4c 41 49 4d 53 20 | 41 4c 4c 20 57 41 52 52 |SCLAIMS |ALL WARR|
|00000e90| 41 4e 54 49 45 53 20 57 | 49 54 48 20 52 45 47 41 |ANTIES W|ITH REGA|
|00000ea0| 52 44 20 54 4f 20 54 48 | 49 53 20 53 4f 46 54 57 |RD TO TH|IS SOFTW|
|00000eb0| 41 52 45 2c 0a 58 20 2a | 20 49 4e 43 4c 55 44 49 |ARE,.X *| INCLUDI|
|00000ec0| 4e 47 20 41 4c 4c 20 49 | 4d 50 4c 49 45 44 20 57 |NG ALL I|MPLIED W|
|00000ed0| 41 52 52 41 4e 54 49 45 | 53 20 4f 46 20 4d 45 52 |ARRANTIE|S OF MER|
|00000ee0| 43 48 41 4e 54 41 42 49 | 4c 49 54 59 20 41 4e 44 |CHANTABI|LITY AND|
|00000ef0| 20 46 49 54 4e 45 53 53 | 2c 20 49 4e 0a 58 20 2a | FITNESS|, IN.X *|
|00000f00| 20 4e 4f 20 45 56 45 4e | 54 20 53 48 41 4c 4c 20 | NO EVEN|T SHALL |
|00000f10| 54 48 45 20 41 55 54 48 | 4f 52 20 42 45 20 4c 49 |THE AUTH|OR BE LI|
|00000f20| 41 42 4c 45 20 46 4f 52 | 20 41 4e 59 20 53 50 45 |ABLE FOR| ANY SPE|
|00000f30| 43 49 41 4c 2c 20 49 4e | 44 49 52 45 43 54 20 4f |CIAL, IN|DIRECT O|
|00000f40| 52 0a 58 20 2a 20 43 4f | 4e 53 45 51 55 45 4e 54 |R.X * CO|NSEQUENT|
|00000f50| 49 41 4c 20 44 41 4d 41 | 47 45 53 20 4f 52 20 41 |IAL DAMA|GES OR A|
|00000f60| 4e 59 20 44 41 4d 41 47 | 45 53 20 57 48 41 54 53 |NY DAMAG|ES WHATS|
|00000f70| 4f 45 56 45 52 20 52 45 | 53 55 4c 54 49 4e 47 20 |OEVER RE|SULTING |
|00000f80| 46 52 4f 4d 20 4c 4f 53 | 53 0a 58 20 2a 20 4f 46 |FROM LOS|S.X * OF|
|00000f90| 20 55 53 45 2c 20 44 41 | 54 41 20 4f 52 20 50 52 | USE, DA|TA OR PR|
|00000fa0| 4f 46 49 54 53 2c 20 57 | 48 45 54 48 45 52 20 49 |OFITS, W|HETHER I|
|00000fb0| 4e 20 41 4e 20 41 43 54 | 49 4f 4e 20 4f 46 20 43 |N AN ACT|ION OF C|
|00000fc0| 4f 4e 54 52 41 43 54 2c | 20 4e 45 47 4c 49 47 45 |ONTRACT,| NEGLIGE|
|00000fd0| 4e 43 45 0a 58 20 2a 20 | 4f 52 20 4f 54 48 45 52 |NCE.X * |OR OTHER|
|00000fe0| 20 54 4f 52 54 49 4f 55 | 53 20 41 43 54 49 4f 4e | TORTIOU|S ACTION|
|00000ff0| 2c 20 41 52 49 53 49 4e | 47 20 4f 55 54 20 4f 46 |, ARISIN|G OUT OF|
|00001000| 20 4f 52 20 49 4e 20 43 | 4f 4e 4e 45 43 54 49 4f | OR IN C|ONNECTIO|
|00001010| 4e 20 57 49 54 48 20 54 | 48 45 0a 58 20 2a 20 55 |N WITH T|HE.X * U|
|00001020| 53 45 20 4f 52 20 50 45 | 52 46 4f 52 4d 41 4e 43 |SE OR PE|RFORMANC|
|00001030| 45 20 4f 46 20 54 48 49 | 53 20 53 4f 46 54 57 41 |E OF THI|S SOFTWA|
|00001040| 52 45 2e 0a 58 20 2a 2f | 0a 58 0a 73 74 61 74 69 |RE..X */|.X.stati|
|00001050| 63 20 63 68 61 72 20 2a | 43 6f 70 79 72 69 67 68 |c char *|Copyrigh|
|00001060| 74 3d 20 22 43 6f 70 79 | 72 69 67 68 74 20 31 39 |t= "Copy|right 19|
|00001070| 39 30 20 42 72 69 61 6e | 20 42 6f 79 74 65 72 22 |90 Brian| Boyter"|
|00001080| 3b 0a 23 64 65 66 69 6e | 65 20 5f 43 4f 50 59 52 |;.#defin|e _COPYR|
|00001090| 49 47 48 54 5f 0a 23 65 | 6e 64 69 66 0a 53 48 41 |IGHT_.#e|ndif.SHA|
|000010a0| 52 5f 45 4f 46 0a 63 68 | 6d 6f 64 20 30 36 34 34 |R_EOF.ch|mod 0644|
|000010b0| 20 63 6f 70 79 72 69 67 | 68 74 2e 68 20 7c 7c 0a | copyrig|ht.h ||.|
|000010c0| 65 63 68 6f 20 27 72 65 | 73 74 6f 72 65 20 6f 66 |echo 're|store of|
|000010d0| 20 63 6f 70 79 72 69 67 | 68 74 2e 68 20 66 61 69 | copyrig|ht.h fai|
|000010e0| 6c 65 64 27 0a 57 63 5f | 63 3d 22 60 77 63 20 2d |led'.Wc_|c="`wc -|
|000010f0| 63 20 3c 20 27 63 6f 70 | 79 72 69 67 68 74 2e 68 |c < 'cop|yright.h|
|00001100| 27 60 22 0a 74 65 73 74 | 20 31 30 38 33 20 2d 65 |'`".test| 1083 -e|
|00001110| 71 20 22 24 57 63 5f 63 | 22 20 7c 7c 0a 09 65 63 |q "$Wc_c|" ||..ec|
|00001120| 68 6f 20 27 63 6f 70 79 | 72 69 67 68 74 2e 68 3a |ho 'copy|right.h:|
|00001130| 20 6f 72 69 67 69 6e 61 | 6c 20 73 69 7a 65 20 31 | origina|l size 1|
|00001140| 30 38 33 2c 20 63 75 72 | 72 65 6e 74 20 73 69 7a |083, cur|rent siz|
|00001150| 65 27 20 22 24 57 63 5f | 63 22 0a 66 69 0a 23 20 |e' "$Wc_|c".fi.# |
|00001160| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 20 78 6c |========|===== xl|
|00001170| 70 72 2e 31 20 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |pr.1 ===|========|
|00001180| 3d 3d 3d 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |===.if t|est -f '|
|00001190| 78 6c 70 72 2e 31 27 20 | 2d 61 20 58 22 24 31 22 |xlpr.1' |-a X"$1"|
|000011a0| 20 21 3d 20 58 22 2d 63 | 22 3b 20 74 68 65 6e 0a | != X"-c|"; then.|
|000011b0| 09 65 63 68 6f 20 27 78 | 20 2d 20 73 6b 69 70 70 |.echo 'x| - skipp|
|000011c0| 69 6e 67 20 78 6c 70 72 | 2e 31 20 28 46 69 6c 65 |ing xlpr|.1 (File|
|000011d0| 20 61 6c 72 65 61 64 79 | 20 65 78 69 73 74 73 29 | already| exists)|
|000011e0| 27 0a 65 6c 73 65 0a 65 | 63 68 6f 20 27 78 20 2d |'.else.e|cho 'x -|
|000011f0| 20 65 78 74 72 61 63 74 | 69 6e 67 20 78 6c 70 72 | extract|ing xlpr|
|00001200| 2e 31 20 28 54 65 78 74 | 29 27 0a 73 65 64 20 27 |.1 (Text|)'.sed '|
|00001210| 73 2f 5e 58 2f 2f 27 20 | 3c 3c 20 27 53 48 41 52 |s/^X//' |<< 'SHAR|
|00001220| 5f 45 4f 46 27 20 3e 20 | 27 78 6c 70 72 2e 31 27 |_EOF' > |'xlpr.1'|
|00001230| 20 26 26 0a 27 5c 5c 22 | 20 74 0a 2e 54 48 20 78 | &&.'\\"| t..TH x|
|00001240| 6c 70 72 20 31 20 22 4e | 6f 76 20 31 34 2c 20 31 |lpr 1 "N|ov 14, 1|
|00001250| 39 39 30 22 0a 2e 53 48 | 20 4e 41 4d 45 0a 78 6c |990"..SH| NAME.xl|
|00001260| 70 72 20 5c 2d 20 70 72 | 69 6e 74 20 63 6f 6e 74 |pr \- pr|int cont|
|00001270| 65 6e 74 73 20 6f 66 20 | 74 68 65 20 43 4c 49 50 |ents of |the CLIP|
|00001280| 42 4f 41 52 44 20 62 75 | 66 66 65 72 0a 2e 53 48 |BOARD bu|ffer..SH|
|00001290| 20 53 59 4e 4f 50 53 49 | 53 0a 2e 42 20 78 6c 70 | SYNOPSI|S..B xlp|
|000012a0| 72 0a 2e 53 48 20 44 45 | 53 43 52 49 50 54 49 4f |r..SH DE|SCRIPTIO|
|000012b0| 4e 0a 2e 42 20 78 6c 70 | 72 0a 67 65 74 73 20 74 |N..B xlp|r.gets t|
|000012c0| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 74 |he conte|nts of t|
|000012d0| 68 65 20 43 4c 49 50 42 | 4f 41 52 44 0a 61 6e 64 |he CLIPB|OARD.and|
|000012e0| 20 70 69 70 65 73 20 69 | 74 20 74 6f 20 74 68 65 | pipes i|t to the|
|000012f0| 20 70 72 69 6e 74 65 72 | 2e 20 54 68 69 73 20 77 | printer|. This w|
|00001300| 61 73 20 61 20 66 65 61 | 74 75 72 65 0a 75 6e 64 |as a fea|ture.und|
|00001310| 65 72 20 73 75 6e 76 69 | 65 77 20 77 68 69 63 68 |er sunvi|ew which|
|00001320| 20 77 61 73 20 64 65 6c | 65 74 65 64 20 69 6e 20 | was del|eted in |
|00001330| 4f 70 65 6e 77 69 6e 2e | 0a 2e 50 50 0a 54 6f 20 |Openwin.|..PP.To |
|00001340| 75 73 65 20 78 6c 70 72 | 2c 20 73 65 6c 65 63 74 |use xlpr|, select|
|00001350| 20 74 68 65 20 74 65 78 | 74 20 75 73 69 6e 67 20 | the tex|t using |
|00001360| 74 68 65 20 6c 65 66 74 | 20 61 6e 64 0a 6d 69 64 |the left| and.mid|
|00001370| 64 6c 65 20 6d 6f 75 73 | 65 20 62 75 74 74 6f 6e |dle mous|e button|
|00001380| 73 2c 20 68 69 74 20 22 | 63 6f 70 79 22 20 28 4c |s, hit "|copy" (L|
|00001390| 36 20 6f 6e 20 74 68 65 | 20 53 75 6e 2d 34 0a 6b |6 on the| Sun-4.k|
|000013a0| 65 79 62 6f 61 72 64 29 | 2c 20 67 6f 20 74 6f 20 |eyboard)|, go to |
|000013b0| 61 6e 6f 74 68 65 72 20 | 73 68 65 6c 6c 74 6f 6f |another |shelltoo|
|000013c0| 6c 2c 20 61 6e 64 20 74 | 79 70 65 20 22 78 6c 70 |l, and t|ype "xlp|
|000013d0| 72 22 2e 0a 78 6c 70 72 | 20 63 61 6e 20 61 6c 73 |r"..xlpr| can als|
|000013e0| 6f 20 62 65 20 61 64 64 | 65 64 20 74 6f 20 79 6f |o be add|ed to yo|
|000013f0| 75 72 20 72 6f 6f 74 6d | 65 6e 75 2e 0a 2e 53 48 |ur rootm|enu...SH|
|00001400| 20 41 55 54 48 4f 52 53 | 0a 4d 61 6a 6f 72 20 42 | AUTHORS|.Major B|
|00001410| 72 69 61 6e 20 42 6f 79 | 74 65 72 20 2d 20 55 53 |rian Boy|ter - US|
|00001420| 20 41 72 6d 79 20 46 6f | 72 65 69 67 6e 20 53 63 | Army Fo|reign Sc|
|00001430| 69 65 6e 63 65 20 61 6e | 64 20 54 65 63 68 6e 6f |ience an|d Techno|
|00001440| 6c 6f 67 79 20 43 65 6e | 74 65 72 0a 2e 53 48 20 |logy Cen|ter..SH |
|00001450| 42 55 47 53 0a 54 68 65 | 72 65 20 69 73 20 61 20 |BUGS.The|re is a |
|00001460| 6c 69 6d 69 74 20 74 6f | 20 74 68 65 20 73 69 7a |limit to| the siz|
|00001470| 65 20 6f 66 20 74 68 65 | 20 43 4c 49 50 42 4f 41 |e of the| CLIPBOA|
|00001480| 52 44 20 79 6f 75 0a 63 | 61 6e 20 70 61 73 73 20 |RD you.c|an pass |
|00001490| 77 69 74 68 20 74 68 69 | 73 20 70 72 6f 67 72 61 |with thi|s progra|
|000014a0| 6d 2c 20 62 75 74 20 49 | 20 64 6f 6e 27 74 20 6b |m, but I| don't k|
|000014b0| 6e 6f 77 20 77 68 61 74 | 0a 69 74 20 69 73 2e 0a |now what|.it is..|
|000014c0| 53 48 41 52 5f 45 4f 46 | 0a 63 68 6d 6f 64 20 30 |SHAR_EOF|.chmod 0|
|000014d0| 36 34 34 20 78 6c 70 72 | 2e 31 20 7c 7c 0a 65 63 |644 xlpr|.1 ||.ec|
|000014e0| 68 6f 20 27 72 65 73 74 | 6f 72 65 20 6f 66 20 78 |ho 'rest|ore of x|
|000014f0| 6c 70 72 2e 31 20 66 61 | 69 6c 65 64 27 0a 57 63 |lpr.1 fa|iled'.Wc|
|00001500| 5f 63 3d 22 60 77 63 20 | 2d 63 20 3c 20 27 78 6c |_c="`wc |-c < 'xl|
|00001510| 70 72 2e 31 27 60 22 0a | 74 65 73 74 20 36 35 32 |pr.1'`".|test 652|
|00001520| 20 2d 65 71 20 22 24 57 | 63 5f 63 22 20 7c 7c 0a | -eq "$W|c_c" ||.|
|00001530| 09 65 63 68 6f 20 27 78 | 6c 70 72 2e 31 3a 20 6f |.echo 'x|lpr.1: o|
|00001540| 72 69 67 69 6e 61 6c 20 | 73 69 7a 65 20 36 35 32 |riginal |size 652|
|00001550| 2c 20 63 75 72 72 65 6e | 74 20 73 69 7a 65 27 20 |, curren|t size' |
|00001560| 22 24 57 63 5f 63 22 0a | 66 69 0a 23 20 3d 3d 3d |"$Wc_c".|fi.# ===|
|00001570| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 20 78 6c 70 72 2e |========|== xlpr.|
|00001580| 63 20 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |c ======|========|
|00001590| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 78 6c 70 |.if test| -f 'xlp|
|000015a0| 72 2e 63 27 20 2d 61 20 | 58 22 24 31 22 20 21 3d |r.c' -a |X"$1" !=|
|000015b0| 20 58 22 2d 63 22 3b 20 | 74 68 65 6e 0a 09 65 63 | X"-c"; |then..ec|
|000015c0| 68 6f 20 27 78 20 2d 20 | 73 6b 69 70 70 69 6e 67 |ho 'x - |skipping|
|000015d0| 20 78 6c 70 72 2e 63 20 | 28 46 69 6c 65 20 61 6c | xlpr.c |(File al|
|000015e0| 72 65 61 64 79 20 65 78 | 69 73 74 73 29 27 0a 65 |ready ex|ists)'.e|
|000015f0| 6c 73 65 0a 65 63 68 6f | 20 27 78 20 2d 20 65 78 |lse.echo| 'x - ex|
|00001600| 74 72 61 63 74 69 6e 67 | 20 78 6c 70 72 2e 63 20 |tracting| xlpr.c |
|00001610| 28 54 65 78 74 29 27 0a | 73 65 64 20 27 73 2f 5e |(Text)'.|sed 's/^|
|00001620| 58 2f 2f 27 20 3c 3c 20 | 27 53 48 41 52 5f 45 4f |X//' << |'SHAR_EO|
|00001630| 46 27 20 3e 20 27 78 6c | 70 72 2e 63 27 20 26 26 |F' > 'xl|pr.c' &&|
|00001640| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 58 31 31 2f 49 |.#includ|e <X11/I|
|00001650| 6e 74 72 69 6e 73 69 63 | 2e 68 3e 0a 23 69 6e 63 |ntrinsic|.h>.#inc|
|00001660| 6c 75 64 65 20 3c 58 31 | 31 2f 53 74 72 69 6e 67 |lude <X1|1/String|
|00001670| 44 65 66 73 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |Defs.h>.|#include|
|00001680| 20 3c 58 31 31 2f 58 61 | 74 6f 6d 2e 68 3e 0a 23 | <X11/Xa|tom.h>.#|
|00001690| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 69 6f 2e 68 |include |<stdio.h|
|000016a0| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 22 63 6f 70 79 |>.#inclu|de "copy|
|000016b0| 72 69 67 68 74 2e 68 22 | 0a 58 0a 73 74 61 74 69 |right.h"|.X.stati|
|000016c0| 63 20 57 69 64 67 65 74 | 20 74 6f 70 6c 65 76 65 |c Widget| topleve|
|000016d0| 6c 3b 0a 58 0a 6d 61 69 | 6e 20 28 61 72 67 63 2c |l;.X.mai|n (argc,|
|000016e0| 20 61 72 67 76 29 0a 69 | 6e 74 09 61 72 67 63 3b | argv).i|nt.argc;|
|000016f0| 0a 63 68 61 72 09 2a 61 | 72 67 76 5b 5d 3b 0a 7b |.char.*a|rgv[];.{|
|00001700| 0a 58 09 76 6f 69 64 20 | 63 6c 69 70 62 6f 61 72 |.X.void |clipboar|
|00001710| 64 28 29 3b 0a 58 09 57 | 69 6e 64 6f 77 20 77 69 |d();.X.W|indow wi|
|00001720| 6e 64 6f 77 3b 0a 58 09 | 41 72 67 20 61 72 67 73 |ndow;.X.|Arg args|
|00001730| 5b 31 30 5d 3b 0a 58 09 | 69 6e 74 20 69 3b 0a 58 |[10];.X.|int i;.X|
|00001740| 0a 58 09 74 6f 70 6c 65 | 76 65 6c 20 3d 20 58 74 |.X.tople|vel = Xt|
|00001750| 49 6e 69 74 69 61 6c 69 | 7a 65 28 4e 55 4c 4c 2c |Initiali|ze(NULL,|
|00001760| 20 22 78 6c 70 72 22 2c | 20 4e 55 4c 4c 2c 20 30 | "xlpr",| NULL, 0|
|00001770| 2c 20 26 61 72 67 63 2c | 20 61 72 67 76 29 3b 0a |, &argc,| argv);.|
|00001780| 58 09 58 74 53 65 74 4d | 61 70 70 65 64 57 68 65 |X.XtSetM|appedWhe|
|00001790| 6e 4d 61 6e 61 67 65 64 | 28 74 6f 70 6c 65 76 65 |nManaged|(topleve|
|000017a0| 6c 2c 20 46 61 6c 73 65 | 29 3b 0a 58 0a 58 09 69 |l, False|);.X.X.i|
|000017b0| 20 3d 20 30 3b 0a 58 09 | 58 74 53 65 74 41 72 67 | = 0;.X.|XtSetArg|
|000017c0| 28 61 72 67 73 5b 69 5d | 2c 20 58 74 4e 77 69 64 |(args[i]|, XtNwid|
|000017d0| 74 68 2c 20 31 30 30 29 | 3b 20 69 2b 2b 3b 0a 58 |th, 100)|; i++;.X|
|000017e0| 09 58 74 53 65 74 41 72 | 67 28 61 72 67 73 5b 69 |.XtSetAr|g(args[i|
|000017f0| 5d 2c 20 58 74 4e 68 65 | 69 67 68 74 2c 20 31 30 |], XtNhe|ight, 10|
|00001800| 30 29 3b 20 69 2b 2b 3b | 0a 58 09 58 74 53 65 74 |0); i++;|.X.XtSet|
|00001810| 56 61 6c 75 65 73 28 74 | 6f 70 6c 65 76 65 6c 2c |Values(t|oplevel,|
|00001820| 20 61 72 67 73 2c 20 69 | 29 3b 0a 58 0a 58 09 58 | args, i|);.X.X.X|
|00001830| 74 52 65 61 6c 69 7a 65 | 57 69 64 67 65 74 28 74 |tRealize|Widget(t|
|00001840| 6f 70 6c 65 76 65 6c 29 | 3b 0a 58 0a 58 09 58 74 |oplevel)|;.X.X.Xt|
|00001850| 47 65 74 53 65 6c 65 63 | 74 69 6f 6e 56 61 6c 75 |GetSelec|tionValu|
|00001860| 65 28 74 6f 70 6c 65 76 | 65 6c 2c 0a 58 09 09 58 |e(toplev|el,.X..X|
|00001870| 49 6e 74 65 72 6e 41 74 | 6f 6d 28 58 74 44 69 73 |InternAt|om(XtDis|
|00001880| 70 6c 61 79 28 74 6f 70 | 6c 65 76 65 6c 29 2c 20 |play(top|level), |
|00001890| 22 43 4c 49 50 42 4f 41 | 52 44 22 2c 20 46 61 6c |"CLIPBOA|RD", Fal|
|000018a0| 73 65 29 2c 0a 58 09 09 | 58 41 5f 53 54 52 49 4e |se),.X..|XA_STRIN|
|000018b0| 47 2c 20 63 6c 69 70 62 | 6f 61 72 64 2c 20 4e 55 |G, clipb|oard, NU|
|000018c0| 4c 4c 2c 20 43 75 72 72 | 65 6e 74 54 69 6d 65 29 |LL, Curr|entTime)|
|000018d0| 3b 0a 58 0a 58 09 58 74 | 4d 61 69 6e 4c 6f 6f 70 |;.X.X.Xt|MainLoop|
|000018e0| 28 29 3b 0a 7d 0a 58 0a | 76 6f 69 64 20 63 6c 69 |();.}.X.|void cli|
|000018f0| 70 62 6f 61 72 64 28 77 | 2c 20 63 6c 69 65 6e 74 |pboard(w|, client|
|00001900| 5f 64 61 74 61 2c 20 73 | 65 6c 65 63 74 69 6f 6e |_data, s|election|
|00001910| 2c 20 74 79 70 65 2c 20 | 62 75 66 2c 20 6c 65 6e |, type, |buf, len|
|00001920| 67 74 68 2c 20 66 6f 72 | 6d 61 74 29 0a 57 69 64 |gth, for|mat).Wid|
|00001930| 67 65 74 20 77 3b 0a 58 | 58 74 50 6f 69 6e 74 65 |get w;.X|XtPointe|
|00001940| 72 20 63 6c 69 65 6e 74 | 5f 64 61 74 61 3b 0a 41 |r client|_data;.A|
|00001950| 74 6f 6d 20 2a 73 65 6c | 65 63 74 69 6f 6e 3b 0a |tom *sel|ection;.|
|00001960| 41 74 6f 6d 20 2a 74 79 | 70 65 3b 0a 58 58 74 50 |Atom *ty|pe;.XXtP|
|00001970| 6f 69 6e 74 65 72 20 62 | 75 66 3b 0a 75 6e 73 69 |ointer b|uf;.unsi|
|00001980| 67 6e 65 64 20 6c 6f 6e | 67 20 2a 6c 65 6e 67 74 |gned lon|g *lengt|
|00001990| 68 3b 0a 69 6e 74 20 2a | 66 6f 72 6d 61 74 3b 0a |h;.int *|format;.|
|000019a0| 7b 0a 58 09 46 49 4c 45 | 20 2a 66 70 3b 0a 58 0a |{.X.FILE| *fp;.X.|
|000019b0| 58 09 69 66 20 28 2a 74 | 79 70 65 20 3d 3d 20 58 |X.if (*t|ype == X|
|000019c0| 54 5f 43 4f 4e 56 45 52 | 54 5f 46 41 49 4c 20 7c |T_CONVER|T_FAIL ||
|000019d0| 7c 20 2a 6c 65 6e 67 74 | 68 20 3c 3d 20 30 29 0a || *lengt|h <= 0).|
|000019e0| 58 09 09 72 65 74 75 72 | 6e 3b 0a 58 0a 58 09 66 |X..retur|n;.X.X.f|
|000019f0| 70 20 3d 20 70 6f 70 65 | 6e 28 22 2f 75 73 72 2f |p = pope|n("/usr/|
|00001a00| 75 63 62 2f 6c 70 72 22 | 2c 20 22 77 22 29 3b 0a |ucb/lpr"|, "w");.|
|00001a10| 58 09 69 66 20 28 66 70 | 20 3d 3d 20 4e 55 4c 4c |X.if (fp| == NULL|
|00001a20| 29 20 7b 0a 58 09 09 70 | 65 72 72 6f 72 28 22 78 |) {.X..p|error("x|
|00001a30| 6c 70 72 3a 20 63 6f 75 | 6c 64 20 6e 6f 74 20 6f |lpr: cou|ld not o|
|00001a40| 70 65 6e 20 70 69 70 65 | 20 74 6f 20 2f 75 73 72 |pen pipe| to /usr|
|00001a50| 2f 75 63 62 2f 6c 70 72 | 22 29 3b 0a 58 09 7d 20 |/ucb/lpr|");.X.} |
|00001a60| 65 6c 73 65 20 7b 0a 58 | 09 09 66 70 75 74 73 20 |else {.X|..fputs |
|00001a70| 28 62 75 66 2c 20 66 70 | 29 3b 0a 58 09 09 70 63 |(buf, fp|);.X..pc|
|00001a80| 6c 6f 73 65 28 66 70 29 | 3b 0a 58 09 7d 0a 58 0a |lose(fp)|;.X.}.X.|
|00001a90| 58 09 58 74 46 72 65 65 | 20 28 62 75 66 29 3b 0a |X.XtFree| (buf);.|
|00001aa0| 58 09 58 74 44 65 73 74 | 72 6f 79 41 70 70 6c 69 |X.XtDest|royAppli|
|00001ab0| 63 61 74 69 6f 6e 43 6f | 6e 74 65 78 74 28 58 74 |cationCo|ntext(Xt|
|00001ac0| 57 69 64 67 65 74 54 6f | 41 70 70 6c 69 63 61 74 |WidgetTo|Applicat|
|00001ad0| 69 6f 6e 43 6f 6e 74 65 | 78 74 28 74 6f 70 6c 65 |ionConte|xt(tople|
|00001ae0| 76 65 6c 29 29 3b 0a 58 | 09 65 78 69 74 20 28 30 |vel));.X|.exit (0|
|00001af0| 29 3b 0a 7d 0a 53 48 41 | 52 5f 45 4f 46 0a 63 68 |);.}.SHA|R_EOF.ch|
|00001b00| 6d 6f 64 20 30 36 34 34 | 20 78 6c 70 72 2e 63 20 |mod 0644| xlpr.c |
|00001b10| 7c 7c 0a 65 63 68 6f 20 | 27 72 65 73 74 6f 72 65 |||.echo |'restore|
|00001b20| 20 6f 66 20 78 6c 70 72 | 2e 63 20 66 61 69 6c 65 | of xlpr|.c faile|
|00001b30| 64 27 0a 57 63 5f 63 3d | 22 60 77 63 20 2d 63 20 |d'.Wc_c=|"`wc -c |
|00001b40| 3c 20 27 78 6c 70 72 2e | 63 27 60 22 0a 74 65 73 |< 'xlpr.|c'`".tes|
|00001b50| 74 20 31 31 36 33 20 2d | 65 71 20 22 24 57 63 5f |t 1163 -|eq "$Wc_|
|00001b60| 63 22 20 7c 7c 0a 09 65 | 63 68 6f 20 27 78 6c 70 |c" ||..e|cho 'xlp|
|00001b70| 72 2e 63 3a 20 6f 72 69 | 67 69 6e 61 6c 20 73 69 |r.c: ori|ginal si|
|00001b80| 7a 65 20 31 31 36 33 2c | 20 63 75 72 72 65 6e 74 |ze 1163,| current|
|00001b90| 20 73 69 7a 65 27 20 22 | 24 57 63 5f 63 22 0a 66 | size' "|$Wc_c".f|
|00001ba0| 69 0a 65 78 69 74 20 30 | 0a |i.exit 0|. |
+--------+-------------------------+-------------------------+--------+--------+