Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8e18e56e08 | ||
|
|
3b195edd60 |
12
Makefile
12
Makefile
@@ -11,17 +11,18 @@
|
||||
DEPENDS = glibc,ncurses
|
||||
ARCH = x86_64
|
||||
URL = http://ex-vi.sourceforge.net/
|
||||
REPO = main
|
||||
BRIEF = Text editor
|
||||
DESC = The vi editor is one of the most common text editors on Unix.
|
||||
SNAPVER = 7
|
||||
SLVER = 9
|
||||
|
||||
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
||||
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
||||
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
|
||||
PATCHDIR := $(PWD)/SRC/patches
|
||||
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SNAPVER)
|
||||
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SLVER)
|
||||
|
||||
include /usr/share/snap/Makefile.snaplinux
|
||||
include /usr/share/sl/Makefile.snaplinux
|
||||
|
||||
$(SRCDIR)/Makefile: $(ARCHIVE)
|
||||
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
||||
@@ -53,11 +54,12 @@ $(ROOT): $(SRCDIR)/ex
|
||||
fi
|
||||
|
||||
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
|
||||
install -v -d -m 1777 $(ROOT)/tmp
|
||||
install -v -d -m 755 $(ROOT)/var && \
|
||||
install -v -d -m 1777 $(ROOT)/var/tmp
|
||||
|
||||
clean:
|
||||
@rm -rvf $(ROOT) \
|
||||
$(SNAPINFO) \
|
||||
$(SLINFO) \
|
||||
$(MANIFEST) \
|
||||
$(FILES) \
|
||||
$(SRCDIR)
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
diff -Naur a/ex.1 b/ex.1
|
||||
--- a/ex.1 2005-02-17 06:39:36.000000000 -0600
|
||||
+++ b/ex.1 2017-04-22 12:10:54.272000000 -0500
|
||||
@@ -1944,10 +1944,10 @@
|
||||
.B $HOME/.exrc
|
||||
editor startup file
|
||||
.TP
|
||||
-.B /var/tmp/Ex\fInnnnnnnnnn\fP
|
||||
+.B /tmp/Ex\fInnnnnnnnnn\fP
|
||||
editor temporary
|
||||
.TP
|
||||
-.B /var/tmp/Rx\fInnnnnnnnnn\fP
|
||||
+.B /tmp/Rx\fInnnnnnnnnn\fP
|
||||
named buffer temporary
|
||||
.TP
|
||||
.B /var/preserve
|
||||
diff -Naur a/expreserve.c b/expreserve.c
|
||||
--- a/expreserve.c 2005-03-04 06:44:46.000000000 -0600
|
||||
+++ b/expreserve.c 2017-04-22 12:12:30.200000000 -0500
|
||||
@@ -149,7 +149,7 @@
|
||||
#ifdef notdef
|
||||
#define TMP "/tmp"
|
||||
#else
|
||||
-#define TMP "/var/tmp"
|
||||
+#define TMP "/tmp"
|
||||
#endif
|
||||
|
||||
#ifndef VMUNIX
|
||||
diff -Naur a/exrecover.c b/exrecover.c
|
||||
--- a/exrecover.c 2005-03-04 06:44:46.000000000 -0600
|
||||
+++ b/exrecover.c 2017-04-22 12:12:50.640000000 -0500
|
||||
@@ -121,7 +121,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
-#define TMP "/var/tmp"
|
||||
+#define TMP "/tmp"
|
||||
|
||||
#ifdef LANGMSG
|
||||
nl_catd catd;
|
||||
diff -Naur a/vi.1 b/vi.1
|
||||
--- a/vi.1 2005-02-17 06:39:36.000000000 -0600
|
||||
+++ b/vi.1 2017-04-22 12:11:10.640000000 -0500
|
||||
@@ -973,10 +973,10 @@
|
||||
.B $HOME/.exrc
|
||||
editor startup file
|
||||
.TP
|
||||
-.B /var/tmp/Ex\fInnnnnnnnnn\fP
|
||||
+.B /tmp/Ex\fInnnnnnnnnn\fP
|
||||
editor temporary
|
||||
.TP
|
||||
-.B /var/tmp/Rx\fInnnnnnnnnn\fP
|
||||
+.B /tmp/Rx\fInnnnnnnnnn\fP
|
||||
named buffer temporary
|
||||
.TP
|
||||
.B /var/preserve
|
||||
Reference in New Issue
Block a user