File: 08_tmac_dir.dpatch

package info (click to toggle)
noweb 2.13-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,540 kB
  • sloc: sh: 2,580; ansic: 1,829; makefile: 903; perl: 781; lisp: 757; awk: 174; csh: 3
file content (53 lines) | stat: -rw-r--r-- 1,420 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
From: Hubert Chathi <uhoreg@debian.org>
Date: Sun, 22 Jan 2023 20:52:34 +0100
Subject: look for noweb'ss troff macros in the correct directory

---
 src/shell/noroff  | 4 ++--
 src/shell/roff.nw | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/shell/noroff b/src/shell/noroff
index fbe2b2a..6afeea3 100644
--- a/src/shell/noroff
+++ b/src/shell/noroff
@@ -4,7 +4,7 @@
 
 ROFF="groff"
 AWK=nawk
-macrodir=|LIBDIR|
+macrodir=/usr/share/groff/tmac
 LIB=|LIBDIR|
 
 opts=
@@ -36,7 +36,7 @@ fi
 
 base="`basename $1 | sed '/\./s/\.[^.]*$//'`"
 tagsfile="$base.nwt"
-(echo ".so $macrodir/tmac.w"
+(echo ".so $macrodir/noweb.tmac"
 if [ -r "$tagsfile" ]; then 
    tagstemp=$($LIB/nwmktemp) || { echo "$0: Cannot create temporary file" >&2; exit 1;  }
    cp $tagsfile $tagstemp
diff --git a/src/shell/roff.nw b/src/shell/roff.nw
index 24ddee6..62171ad 100644
--- a/src/shell/roff.nw
+++ b/src/shell/roff.nw
@@ -632,7 +632,7 @@ The location of [[macrodir]] is likely to require customization.
 
 ROFF="groff"
 AWK=nawk
-macrodir=|LIBDIR|
+macrodir=/usr/share/groff/tmac
 LIB=|LIBDIR|
 
 opts=
@@ -664,7 +664,7 @@ fi
 
 base="`basename $1 | sed '/\./s/\.[^.]*$//'`"
 tagsfile="$base.nwt"
-(echo ".so $macrodir/tmac.w"
+(echo ".so $macrodir/noweb.tmac"
 if [ -r "$tagsfile" ]; then 
    tagstemp=$($LIB/nwmktemp) || { echo "$0: Cannot create temporary file" >&2; exit 1;  }
    cp $tagsfile $tagstemp