File: format-1.0.patch

package info (click to toggle)
e3 1%3A2.82%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 620 kB
  • sloc: asm: 13,937; ansic: 1,713; makefile: 110; sed: 20; sh: 18
file content (92 lines) | stat: -rw-r--r-- 2,010 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
From: Debian QA Group <packages@qa.debian.org>
Date: Sun, 12 May 2019 04:36:49 +0000
Subject: format-1.0

Makefile | 26 ++++++++++++++------------
 e3.asm   | 26 ++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 12 deletions(-)
---
 Makefile | 18 +++++++-----------
 e3.asm   | 26 ++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 11 deletions(-)

diff --git a/Makefile b/Makefile
index b0d3fcc..415b69d 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ EXMODE=SED
 
 BINDIR='$(PREFIX)/bin'
 MANSEC='1'
-MANDIR='$(PREFIX)/man/man$(MANSEC)'
+MANDIR='$(PREFIX)/share/man/man$(MANSEC)'
 
 ASOURCES=e3.asm e3.h
 AFLAGS = -w+orphan-labels -f elf
@@ -49,11 +49,7 @@ else
 	ld -s -o e3 e3.o
 	strip --remove-section .comment e3
 endif
-	ln -sf e3 e3ws
-	ln -sf e3 e3em
-	ln -sf e3 e3pi
-	ln -sf e3 e3vi
-	ln -sf e3 e3ne
+
 
 # ------------- 64 bit L I N U X ------------------
 
@@ -75,11 +71,11 @@ endif
 install:	e3
 	install -d $(PREFIX) $(BINDIR) $(MANDIR)
 	install -m 755 e3 $(BINDIR)
-	ln -sf $(BINDIR)/e3 $(BINDIR)/e3ws
-	ln -sf $(BINDIR)/e3 $(BINDIR)/e3em
-	ln -sf $(BINDIR)/e3 $(BINDIR)/e3pi
-	ln -sf $(BINDIR)/e3 $(BINDIR)/e3vi
-	ln -sf $(BINDIR)/e3 $(BINDIR)/e3ne
+	cd $(BINDIR) && ln -s e3 e3ws
+	cd $(BINDIR) && ln -s e3 e3em
+	cd $(BINDIR) && ln -s e3 e3pi
+	cd $(BINDIR) && ln -s e3 e3vi
+	cd $(BINDIR) && ln -s e3 e3ne
 	install -m 644 e3.man $(MANDIR)/e3.$(MANSEC)
 
 clean:
diff --git a/e3.asm b/e3.asm
index b0a17ca..7d99f17 100644
--- a/e3.asm
+++ b/e3.asm
@@ -3653,6 +3653,32 @@ NoPi:	cmp ecx,'e3vi'
 	mov byte [eax],VI
 	ret
 NoVi:	cmp ecx,'e3ws'
+	jnz NoWs
+	mov byte [eax],WS
+	ret
+NoWs:	cmp ecx,'edit'
+	jnz NoNe2
+	mov byte [eax],NE
+	ret
+NoNe2:	cmp ecx,'macs'
+	jnz NoEm2
+	mov byte [eax],EM
+	ret
+NoEm2:	cmp ecx,'pico'
+	jnz NoPi2
+	mov byte [eax],PI
+	ret
+NoPi2:  push cx
+	mov cx,'__'
+	cmp ecx,'__vi'
+	pop cx
+	jnz NoVi2
+	mov byte [eax],VI
+	ret
+NoVi2:	push cx
+	mov cx,'__'
+	cmp ecx,'__ws'
+	pop cx
 	jnz modeOK
 	mov byte [eax],WS
 modeOK:	ret