diff options
author | joerg <joerg@FreeBSD.org> | 1995-06-22 21:27:29 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1995-06-22 21:27:29 +0000 |
commit | ab727dd65cf02a40c95c2628a81a8603b15dc355 (patch) | |
tree | 81b2563c3bfb1b583f1b4a2b0ab19f10e366dbe2 /editors/uzap/files | |
parent | 15f4789e85ccf5be6d0dad1290fb44d82090f300 (diff) | |
download | FreeBSD-ports-ab727dd65cf02a40c95c2628a81a8603b15dc355.zip FreeBSD-ports-ab727dd65cf02a40c95c2628a81a8603b15dc355.tar.gz |
uzap - a small & nice hex editor
Unfortunately, the copyright is somewhat restrictive, so we cannot
make a package out of it. The author seem no longer to be reachable
under the provided mail address.
Diffstat (limited to 'editors/uzap/files')
-rw-r--r-- | editors/uzap/files/patch-a | 40 | ||||
-rw-r--r-- | editors/uzap/files/patch-b | 19 |
2 files changed, 59 insertions, 0 deletions
diff --git a/editors/uzap/files/patch-a b/editors/uzap/files/patch-a new file mode 100644 index 0000000..6593df8 --- /dev/null +++ b/editors/uzap/files/patch-a @@ -0,0 +1,40 @@ +*** Makefile.orig Thu Mar 30 20:04:11 1989 +--- Makefile Mon Jun 19 22:15:57 1995 +*************** +*** 1,7 **** + # Makefile for Uzap. +! BINDIR = /usr/local +! MANDIR = /usr/man/manl +! MSECT = l + + uzap: uzap.o edit.o search.o screen.o + cc -O uzap.o edit.o search.o screen.o -lcurses -ltermcap -o uzap +--- 1,9 ---- + # Makefile for Uzap. +! BINDIR = ${PREFIX}/bin/ +! MANDIR = ${PREFIX}/man/man1 +! MSECT = 1 +! +! all: uzap + + uzap: uzap.o edit.o search.o screen.o + cc -O uzap.o edit.o search.o screen.o -lcurses -ltermcap -o uzap +*************** +*** 19,26 **** + cc -c -O screen.c + + install: uzap +! install -s -m 771 uzap $(BINDIR) +! install -c -m 664 uzap.man $(MANDIR)/uzap.$(MSECT) + + clean: +! rm -f *.o core uzap +--- 21,28 ---- + cc -c -O screen.c + + install: uzap +! install -s -m 755 -o bin -g bin uzap $(BINDIR) +! install -c -m 644 -o bin -g bin uzap.man $(MANDIR)/uzap.$(MSECT) + + clean: +! rm -f *.o core *.core uzap diff --git a/editors/uzap/files/patch-b b/editors/uzap/files/patch-b new file mode 100644 index 0000000..39cfa5f --- /dev/null +++ b/editors/uzap/files/patch-b @@ -0,0 +1,19 @@ +*** search.c.orig Thu Mar 30 20:04:12 1989 +--- search.c Mon Jun 19 22:17:24 1995 +*************** +*** 217,223 **** + } + } + for(x= 0; x < len - 1; x+= 2){ +! strcpy(hdigit, hex + (len - x - 2), 2); + hdigit[2]= '\0'; + + if(hdigit[0] < 96) hdigit[0]= hdigit[0] - 48; +--- 217,223 ---- + } + } + for(x= 0; x < len - 1; x+= 2){ +! strncpy(hdigit, hex + (len - x - 2), 2); + hdigit[2]= '\0'; + + if(hdigit[0] < 96) hdigit[0]= hdigit[0] - 48; |