File: debianization.patch

package info (click to toggle)
gap-sonata 2.9.7%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,068 kB
  • sloc: sh: 53; makefile: 23
file content (115 lines) | stat: -rw-r--r-- 2,943 bytes parent folder | download
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
Description: debianization
 Meant to maintain a minimal debian/rules, to fix annoying
 warnings, to address Debian specific stuff in general.
Origin: vendor, Debian
Forwarded: not-needed
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2025-12-26

--- a/doc/ref/manual.tex
+++ b/doc/ref/manual.tex
@@ -1,4 +1,4 @@
-\input ../gapmacro
+\input gapmacro
 \usecmfonts
 \BeginningOfBook{sonata}
   \TitlePage{
--- a/doc/tut/manual.tex
+++ b/doc/tut/manual.tex
@@ -1,4 +1,4 @@
-\input ../gapmacro
+\input gapmacro
 \usecmfonts
 \BeginningOfBook{etudes}
   \TitlePage{
--- a/doc/make_doc
+++ b/doc/make_doc
@@ -1,6 +1,16 @@
 #!/bin/sh
 set -e
 
+GAPDATADIR=/usr/share/gap
+
+TEXINPUTS=$GAPDATADIR/etc:${TEXINPUTS}
+export TEXINPUTS
+
+PDFTEX='/usr/bin/pdftex -no-shell-escape -interaction batchmode'
+BIBTEX=/usr/bin/bibtex
+GAPMANUALINDEX=$GAPDATADIR/etc/manualindex
+GAPCONVERT=$GAPDATADIR/etc/convert.pl
+
 echo "TeXing documentation:ref"
 # TeX the manual and build its bibliography
 # CAVEAT: For version 2.4 manualindex did not produce a proper file manual.mst
@@ -11,19 +21,19 @@
 # delete old stuff to avoid spurious or "hidden errors" caused by their presence
 rm -f manual.{aux,bbl,blg,dvi,idx,ilg,ind,lab,log,pdf,ps,six,toc}
 # TeX the manual
-tex manual
+$PDFTEX manual
 # ... and build its bibliography
-bibtex manual
+$BIBTEX manual
 # TeX the manual again to incorporate the ToC
-tex manual
+$PDFTEX manual
 # ... and build the index
-../../../../doc/manualindex manual
+$GAPMANUALINDEX manual
 # Finally TeX the manual again to get cross-references right
-tex manual
+$PDFTEX manual
 
 # Create PDF version
-pdftex manual
-pdftex manual
+$PDFTEX manual
+$PDFTEX manual
 
 cd ..
 
@@ -33,19 +43,19 @@
 # delete old stuff to avoid spurious or "hidden errors" caused by their presence
 rm -f manual.{aux,bbl,blg,dvi,idx,ilg,ind,lab,log,pdf,ps,six,toc}
 # TeX the manual
-tex manual
+$PDFTEX manual
 # ... and build its bibliography
-bibtex manual
+$BIBTEX manual
 # TeX the manual again to incorporate the ToC
-tex manual
+$PDFTEX manual
 # ... and build the index
-../../../../doc/manualindex manual
+$GAPMANUALINDEX manual
 # Finally TeX the manual again to get cross-references right
-tex manual
+$PDFTEX manual
 
 # Create PDF version
-pdftex manual
-pdftex manual
+$PDFTEX manual
+$PDFTEX manual
 
 cd ..
 
@@ -56,7 +66,7 @@
 
 echo "Creating HTML documentation:ref"
 cd ref
-../../../../etc/convert.pl -i -u -c -n SONATA . ../htm/ref
+$GAPCONVERT -i -u -c -n SONATA . ../htm/ref
 cd ../htm/ref
 for d in *.htm; do
   sed 's/cite\([^ .,]\+\)/[\1]/g' < $d > tmp
@@ -68,7 +78,7 @@
 #(cd ref;/home/staff/juergen/SSOONNAATTAA/gap/etc/convert.pl -t -c -n SONATA . ../htm/ref)
 echo "Creating HTML documentation:tut"
 cd tut
-../../../../etc/convert.pl -i -u -c -n SONATA-tutorial . ../htm/tut
+$GAPCONVERT -i -u -c -n SONATA-tutorial . ../htm/tut
 cd ../htm/tut
 for d in *.htm; do
   sed 's/cite\([^ .,]\+\)/[\1]/g' < $d > tmp