⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crzsz.sh

📁 Linux下基于Z-MODEM的串口通讯程序源码
💻 SH
📖 第 1 页 / 共 5 页
字号:
Submitted-by: caf@omenArchive-name: crzsz/part01---- Cut Here and feed the following to sh ----#!/bin/sh# This is crzsz, a shell archive (produced by shar 3.49)# To extract the files from this archive, save it to a file, remove# everything above the "!/bin/sh" line above, and type "sh file_name".## made 05/09/2000 20:39 UTC by caf@omen# Source directory /u/caf/src/modem/3/client## existing files will NOT be overwritten unless -c is specified## This shar contains:# length  mode       name# ------ ---------- ------------------------------------------#   1659 -rw-rw-r-- README#    511 -rw-rw-r-- COPYING#   3727 -rw-rw-r-- mailer.crz#   8177 -rw-rw-r-- Makefile#  27738 -rw-rw-r-- crz.c#  32725 -rw-rw-r-- csz.c#   6577 -rw-r--r-- zmodem.h#  17736 -rw-r--r-- zm.c#   4519 -rw-r--r-- zmr.c#  10356 -rw-r--r-- rbsb.c#   8764 -rw-r--r-- crctab.c#   7605 -rw-r--r-- undos.c#  15626 -rw-rw-r-- crz.doc#  20849 -rw-rw-r-- csz.doc#   4282 -rw-rw-r-- undos.doc## ============= README ==============if test -f 'README' -a X"$1" != X"-c"; then	echo 'x - skipping README (File already exists)'elseecho 'x - extracting README (Text)'sed 's/^X//' << 'SHAR_EOF' > 'README' &&Unix Crz and Csz support XMODEM, YMODEM, and ZMODEM transferswhen called by dial-out programs such as Kermit and certainversions of cu(1).  They are clients designed for this use.XAlso included is the "undos" program which converts betweenUnix, MSDOS, CP/M, and Macintosh text file end of lineconventions.XXUnregistered users can obtain support on a consulting basis.Please call 503-614-0430 to arrange consulting support.XRegistered users with support options can obtain support forproblems not involving terminal servers or third party softwareusing email or the regular Omen Technology phone number.XCrz and Csz are Copyrighted shareware programs.  Use of theseprograms beyond a brief evaluation period requires registration.Please print the "mailer.rz" file, fill out the form and returnsame with your registration.XThe Man pages are formatted for those without Unix nroff.  Forbest results, use less(1) (available on comp.sources.misc) asyour manual page reader.  XPlease check our web page www.omen.com for the latest updates.XFTP access is now available at ftp.cs.pdx.edu pub/zmodemdirectory.  This account has the latest and greatest selectionof OMEN files available for FTP.  The files in this direcotryyare uploaded with ZMODEM directly from the Omen home system,preserving modification dates and file contents.XXChuck Forsberg WA7KGX     caf@omen.COM     http://www.omen.comX   Omen Technology Inc      "The High Reliability Software"Author of YMODEM, ZMODEM, Professional-YAM, ZCOMM, GSZ and DSZTeleGodzilla BBS: 503-617-1698  FTP: ftp.cs.pdx.edu pub/zmodemPOB 4681 Portland OR 97208     503-614-0430   FAX:503-629-0665SHAR_EOFchmod 0664 README ||echo 'restore of README failed'Wc_c="`wc -c < 'README'`"test 1659 -eq "$Wc_c" ||	echo 'README: original size 1659, current size' "$Wc_c"fi# ============= COPYING ==============if test -f 'COPYING' -a X"$1" != X"-c"; then	echo 'x - skipping COPYING (File already exists)'elseecho 'x - extracting COPYING (Text)'sed 's/^X//' << 'SHAR_EOF' > 'COPYING' &&Crz ans Csz are Copyrighted shareware programs.  Use ofthese programs is subject to licensing conditions detailed inthe csz.c source code.  "Commercial Use" includes use of thisprogram to transfer files to/from any commercial or sharewareprogram not published by Omen Technology INC.  Please print the"mailer.crz" file, fill out the form and return it with yourregistration.XIt is a violation of this program's Copyright to distributebinaries without the accompanying *.doc, README, and COPYINGfiles.XSHAR_EOFchmod 0664 COPYING ||echo 'restore of COPYING failed'Wc_c="`wc -c < 'COPYING'`"test 511 -eq "$Wc_c" ||	echo 'COPYING: original size 511, current size' "$Wc_c"fi# ============= mailer.crz ==============if test -f 'mailer.crz' -a X"$1" != X"-c"; then	echo 'x - skipping mailer.crz (File already exists)'elseecho 'x - extracting mailer.crz (Text)'sed 's/^X//' << 'SHAR_EOF' > 'mailer.crz' &&X           CRZ/CSZ Version 1.XX License form (Worldwide)XRemit To:           Omen Technology INC             FAX: 503-629-0665X                    POB 4681X                    Portland OR  97208-4681XX    Federal TAX ID #: 930858776 Oregon TAX ID #: 536565XPayment of This License authorizes the installation and use ofthe "crz/csz" programs and/or derivative products derived fromthis code by compilation, inclusion, decompilation, or reverseengineering, on the specified computers.XThis license covers current and future Version 1.XX releases of the"crz" and "csz" programs.XCRZ/CSZ Version 1.XX per user Quantity Discount Schedule, (perpurchase).  Each machine this software is used on has at leastone user.  The software must be registered according to themaximum number of users that may be using the software at onetime.XUSERS	REGISTRATION-----	------------1-4      $99.00             INCLUDES SUPPORT5-10    $149.00             INCLUDES SUPPORT11-20   $199.00             INCLUDES SUPPORT21+      $10.00 per user    INCLUDES SUPPORTX-      $199   Educational campus site (college owned machines)X40-99  $500   Each machine INCLUDES SUPPORT * (see below)-     $1000   Other campus site INCLUDES SUPPORT ** (see below)X"Machine" means a computer system with an arbitrary number ofphysically co-located processors sharing a common logicalidentity.  "Users" refers to the maximum number of users orprocesses that will be allowed use the program(s) at one time.X$99 to $199 registrations include:X	Telephone and internet mail support for a specified contact individualX$500 and $1000 registrations include:X	A copy of Unix Professional-YAM with crz/csz man page troff sourceXOtherwise support is available by consulting contract.X____ CRZ/CSZ Version 1.XX Registrations                     ______X____ OPTIONAL: Update disk (current crz/csz sources as on FTP site)X                                  3.5  inch DOS $ 20.00     ______X				  (Contact Omen for other formats)XX     Shipping and Handling                                    5.00XX       (Overseas air mailed at no extra charge)    Total   _______X         Purchase orders less than $150 must be prepaid.XXContact individual  ________________________________________________________XEmail    ___________________________________________________________________XCompany Name     ___________________________________________________________XAddress  ___________________________________________________________________XX         ___________________________________________________________________XX         ___________________________________________________________________XXI hereby agree that the licenses paid for are equal to or greater than anynumber of simultaneous invocations of the Programs, and that additionallicenses will be purchased prior to increasing the number of simultaneousinvocations of the Programs.XI agree that these Programs are made available in the hope it will beuseful, BUT WITHOUT ANY WARRANTY OF ANY KIND OR LIABILITY FOR ANY DAMAGESOF ANY KIND.XName     ___________________________________________________________________XTitle    ___________________________________________________________________XXSignature __________________________________________________________________XDate      ___________________            Phone  (_____) ____________________XXPayment by:  Check (U.S. bank or branch) enclosed( ) Amex/Visa/Mastercard( )XCard #  _____________________________________________  EXPIRES _____________XName of Cardholder  ________________________________________________________XCardholder Address  ________________________________________________________(for bank verification)XXSHAR_EOFchmod 0664 mailer.crz ||echo 'restore of mailer.crz failed'Wc_c="`wc -c < 'mailer.crz'`"test 3727 -eq "$Wc_c" ||	echo 'mailer.crz: original size 3727, current size' "$Wc_c"fi# ============= Makefile ==============if test -f 'Makefile' -a X"$1" != X"-c"; then	echo 'x - skipping Makefile (File already exists)'elseecho 'x - extracting Makefile (Text)'sed 's/^X//' << 'SHAR_EOF' > 'Makefile' &&# Makefile for Unix/Xenix crz and csz programs# Some targets may not be up to dateCC=ccOFLAG= -OXXnothing:X	@echoX	@echo "Please study the #ifdef's in crctab.c, rbsb.c, crz.c and csz.c,"X	@echo "make any necessary hacks for oddball or merged SYSV/BSD systems,"X	@echo "then type 'make SYSTEM' where SYSTEM is one of:"X	@echoX	@echo "	posix	POSIX compliant systems (Linux, FBSD, etc.)"X	@echo "	aix	AIX systems"X	@echo "	next	NeXtstep v3.x (POSIX)"X	@echo "	odt	SCO Open Desktop"X	@echo "	everest	SCO Open Desktop (elf, strict)"X	@echo "	sysvr4	SYSTEM 5.4 Unix"X	@echo "	sysvr3	SYSTEM 5.3 Unix with mkdir(2), COHERENT 4.2"X	@echo "	sysv	SYSTEM 3/5 Unix"X	@echo "	sysiii  SYS III/V  Older Unix or Xenix compilers"X	@echo "	xenix	Xenix"X	@echo "	x386	386 Xenix"X	@echo "	bsd	Berkeley 4.x BSD, Ultrix, V7"X	@echo "	tandy	Tandy 6000 Xenix"X	@echo "	dnix	DIAB Dnix 5.2"X	@echo "	dnix5r3	DIAB Dnix 5.3"X	@echo "	amiga	3000UX running SVR4"X	@echo "	POSIX	POSIX compliant systems (SCO Open Desktop, strict)"X	@echoX	@echo "	undos	Make the undos, todos, etc. program."X	@echo "	doc	Format the man pages with nroff"X	@echoXXFILES =	 COPYING README Makefile undos.c zmodem.h zm.c crz.c rbsb.c \X	 crctab.c mailer.crz zmr.c *.doc csz.cXall:doc zip tgz tag usenetXdoc:crz.doc csz.doc undos.docXclean:X	rm -f *.o *.out csz csb csx czcommand czcommandi crz crb crxX	rm -f undos tounix todos unmac tomac tocpm unparityXcrz.doc:crz.1 servers.miX	nroff -man crz.1 | col  >crz.docXcsz.doc:csz.1 servers.miX	nroff -man csz.1 | col  >csz.docXundos.doc:undos.1X	nroff -man undos.1 | col  >undos.docXzip: docX	-rm -f crzsz.zipX	zip crzsz COPYING README mailer.crz Makefile zmodem.h zm.c csz.c crz.cX	zip crzsz undos.c crctab.c rbsb.c *.doc file_id.diz zmr.cX	mv crzsz.zip /u/t/yamXtgz: doc  X	-rm -f /tmp/crzszX	tar cvf /tmp/crzsz COPYING README Makefile zmodem.h zm.c csz.c crz.c \X	 mailer.crz crctab.c rbsb.c *.doc undos.c zmr.c X	gzip -9 /tmp/crzszX	mv /tmp/crzsz.gz /u/t/yam/crzsz.tgzXXtag: doc  xenixX	-rm -f /tmp/crzszX	tar cvf /tmp/crzsz COPYING README Makefile zmodem.h zm.c csz.c crz.c \X	 mailer.crz crctab.c rbsb.c *.doc \X	 undos.c zmr.c crz csz undosX	gzip -9 /tmp/crzszX	mv /tmp/crzsz.gz /u/t/yam/crzsz.tagXXusenet:docX	shar -c -a -n crzsz -o /tmp/crzsz \X	  README COPYING mailer.crz Makefile crz.c csz.c \X	 zmodem.h zm.c zmr.c rbsb.c crctab.c undos.c *.docXtags:X	ctags csz.c crz.c zm.c zmr.c crbcsb.cX.PRECIOUS:crz cszXxenix:X	/usr/ods30/bin/cc \X	-I/usr/ods30/usr/include -I/usr/ods30/usr/include/sys \X	-M3 $(CFLAGS) $(RFLAGS) $(OFLAG) -s -DUSG -DNFGVMIN -DREADCHECK csz.c -lx -o cszX	size csz; file cszX	-rm -f csb csx czcommand czcommandiX	ln csz csbX	ln csz csxX	ln csz czcommandX	ln csz czcommandiX	/usr/ods30/bin/cc \X	 -I/usr/ods30/usr/include -I/usr/ods30/usr/include/sys \X	-M3 $(CFLAGS) $(RFLAGS) $(OFLAG) -s -DUSG -DMD crz.c -o crzX	size crz; file crzX	-rm -f crb crxX	ln crz crbX	ln crz crxX	/usr/ods30/bin/cc \X	 -I/usr/ods30/usr/include -I/usr/ods30/usr/include/sys \X	-M3 $(CFLAGS) $(OFLAG) -s undos.c -o undosX	size undos; file undosX	-rm -f tounix todos unmac tomac tocpm unparityX	ln undos tounixX	ln undos todosX	ln undos unmacX	ln undos tomacX	ln undos tocpmX	ln undos unparityXx386:X	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DMD crz.c -o crzX	size crzX	-rm -f crb crxX	ln crz crbX	ln crz crxX	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DNFGVMIN -DREADCHECK csz.c -lx -o cszX	size cszX	-rm -f csb csx czcommand czcommandiX	ln csz csbX	ln csz csxX	ln csz czcommandX	ln csz czcommandiXsysv:X	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DMD -DOLD crz.c -o crzX	size crzX	-rm -f crb crxX	ln crz crbX	ln crz crxX	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DSV -DNFGVMIN -DOLD csz.c -o cszX	size cszX	-rm -f csb csx czcommand czcommandiX	ln csz csbX	ln csz csxX	ln csz czcommandX	ln csz czcommandiXsysiii:X	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DOLD crz.c -o crzX	size crzX	-rm -f crb crxX	ln crz crbX	ln crz crxX	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DSV -DUSG -DNFGVMIN -DOLD csz.c -o cszX	size cszX	-rm -f csb csx czcommand czcommandiX	ln csz csbX	ln csz csxX	ln csz czcommandX	ln csz czcommandiXsysvr3:X	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DMD=2 crz.c -o crzX	size crzX	-rm -f crb crxX	ln crz crbX	ln crz crxX	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DSV -DUSG -DNFGVMIN csz.c -o cszX	size cszX	-rm -f csb csx czcommand czcommandiX	ln csz csbX	ln csz csxX	ln csz czcommandX	ln csz czcommandiXsysvr4:X	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DMD=2 crz.c -o crzX	size crzX	-rm -f crb crxX	ln crz crbX	ln crz crxX	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DSV -DUSG csz.c -o cszX	size cszX	-rm -f csb csx czcommand czcommandiX	ln csz csbX	ln csz csxX	ln csz czcommandX	ln csz czcommandiXodt:X	cc -O -n $(RFLAGS) -DUSG -DMD=2 crz.c -o crzX	size crzX	-rm -f crb crxX	ln crz crbX	ln crz crxX	cc -O -n $(RFLAGS) -DUSG -DREADCHECK csz.c -lx -o cszX	size cszX	-rm -f csb csx czcommand czcommandiX	ln csz csbX	ln csz csxX	ln csz czcommandX	ln csz czcommandiXeverest:X	cc -b elf -w 3 -O3 $(RFLAGS) -DUSG -DMD=2 crz.c -o crzX	size crzX	-rm -f crb crxX	ln crz crbX	ln crz crxX	cc -b elf -w 3 $(RFLAGS) -O3 -DUSG -DREADCHECK csz.c -lx -o cszX	size cszX	-rm -f csb csx czcommand czcommandiX	ln csz csbX	ln csz csxX	ln csz czcommandX	ln csz czcommandiXposix:X	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DPOSIX -DMD=2 crz.c -o crzX	size crzX	-rm -f crb crxX	ln crz crbX	ln crz crxX	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DPOSIX csz.c -o cszX	size cszX	-rm -f csb csx czcommand czcommandiX	ln csz csbX	ln csz csxX	ln csz czcommandX	ln csz czcommandiXPOSIX:X	@echo "Well, stricter, as in *safer sex* ..."X	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DPOSIX -DMD=2 -DCOMPL crz.c -o crzX	size crzX	-rm -f crb crxX	ln crz crbX	ln crz crxX	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DPOSIX -DCOMPL csz.c -o cszX	size cszX	-rm -f csb csx czcommand czcommandiX	ln csz csbX	ln csz csxX	ln csz czcommandX	ln csz czcommandiXXbsd:X	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DMD=2 -Dstrchr=index -DV7 crz.c -o crzX	size crzX	-rm -f crb crX	ln crz crbX	ln crz crxX	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DV7 -DNFGVMIN csz.c -o cszX	size cszX	-rm -f csb csx czcommand czcommandiX	ln csz csbX	ln csz csxX	ln csz czcommandX	ln csz czcommandiXtandy:X	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAGS) -n -DUSG -DMD -DT6K csz.c -lx -o cszX	size cszX	-rm -f csb csx czcommand czcommandiX	ln csz csbX	ln csz csxX	ln csz czcommandX	ln csz czcommandiX	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAGS) -n -DUSG -DMD -DT6K crz.c -lx -o crzX	size crzX	-rm -f crb crxX	ln crz crbX	ln crz crxXdnix:X	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DMD crz.c -o crzX	size crzX	-rm -f crb crxX	ln crz crbX	ln crz crxX	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DSV -DUSG -DNFGVMIN -DREADCHECK csz.c -o cszX	size cszX	-rm -f csb csx czcommand czcommandiX	ln csz csbX	ln csz csxX	ln csz czcommandX	ln csz czcommandiXdnix5r3:X	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DMD=2 crz.c -o crzX	size crzX	-rm -f crb crxX	ln crz crbX	ln crz crxX	$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DSV -DNFGVMIN -DREADCHECK csz.c -o cszX	size cszX	-rm -f csb csx czcommand czcommandiX	ln csz csbX	ln csz csxX	ln csz czcommandX	ln csz czcommandiXXamiga:X	$(CC) $(CFLAGS) $(OFLAG) -DUSG -DNFGVMIN -g crz.c -o crzX	size crzX	-rm -f crb crxX	ln crz crbX	ln crz crxX	$(CC) $(CFLAGS) $(OFLAG) -DUSG -DSV -DNFGVMIN -g csz.c -o cszX	size cszX	-rm -f csb csx czcommand czcommandiX	ln csz csbX	ln csz csxX	ln csz czcommandX	ln csz czcommandiXaix:X	@echo "As of July 26 1996, ..."X	@echo "IBM sez if you have the very latest PTFs, 'make posix' will work."

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -