summaryrefslogtreecommitdiff
path: root/Build/source/utils/xindy-new/xindy-2.4-rc1-PATCHES/patch-01-VPATH-and-more
blob: 5fece359c51a39481203b95d19e4397507d84813 (plain)
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
diff -ur -x Makefile.in -x aclocal.m4 -x configure -x autom4te.cache xindy.orig/make-rules/alphabets/Makefile.am xindy/make-rules/alphabets/Makefile.am
--- xindy.orig/make-rules/alphabets/Makefile.am	2009-03-29 12:44:00.000000000 +0200
+++ xindy/make-rules/alphabets/Makefile.am	2009-11-21 00:21:54.000000000 +0100
@@ -133,7 +133,6 @@
 	dutch/ij-as-ij-utf8-test.xdy \
 	dutch/ij-as-ij-utf8.xdy \
 	dutch/ij-as-y-utf8.pl \
-	dutch/ij-as-y-utf8.xdy \
 	dutch/ij-as-y-utf8-lang.xdy \
 	dutch/ij-as-y-utf8-test.xdy \
 	dutch/ij-as-y-utf8.xdy
@@ -729,7 +728,7 @@
 	iconv -f UTF-8 -t CP850 >$@
 
 romanian/latin2.pl : romanian/utf8.pl
-	sed -e 's/@u{\([^}]*\)}//g;' -f rom-comma-kludge.sed <$< | \
+	sed -e 's/@u{\([^}]*\)}//g;' -f $(srcdir)/rom-comma-kludge.sed <$< | \
 	iconv -f UTF-8 -t ISO8859-2 >$@
 
 %latin2.pl : %utf8.pl.in
@@ -765,7 +764,7 @@
 	iconv -f UTF-8 -t ISO-8859-15 >$@
 
 romanian/cp1250.pl : romanian/utf8.pl
-	sed -e 's/@u{\([^}]*\)}//g;' -f rom-comma-kludge.sed <$< | \
+	sed -e 's/@u{\([^}]*\)}//g;' -f $(srcdir)/rom-comma-kludge.sed <$< | \
 	iconv -f UTF-8 -t CP1250 >$@
 
 %cp1250.pl : %utf8.pl.in
@@ -793,7 +792,7 @@
 	iconv -f UTF-8 -t KOI8-U >$@
 
 # %tex.pl : %utf8.pl utf8-to-tex.sed
-#	sed -f utf8-to-tex.sed <$< >$@
+#	sed -f $(srcdir)/utf8-to-tex.sed <$< >$@
 
 
 
@@ -801,13 +800,13 @@
 	sed -n '1,10 p' <$< >$@
 
 %-test.xdy : %.pl
-	perl $< $*
+	perl -I$(srcdir) $< $*
 
 %-doc.tex : %.pl
-	perl $< $*
+	perl -I$(srcdir) $< $*
 
 %.xdy :	%.pl
-	perl $< $*
+	perl -I$(srcdir) $< $*
 
 SUBDIRS = \
 	albanian \
@@ -1149,8 +1148,8 @@
 
 if BUILDDOCS
 alphabets-doc.pdf : alphabets-doc.tex alphabets-inc.tex
-	pdflatex -interaction batchmode alphabets-doc.tex
-	pdflatex -interaction batchmode alphabets-doc.tex
+	pdflatex -interaction batchmode $(srcdir)/alphabets-doc.tex
+	pdflatex -interaction batchmode $(srcdir)/alphabets-doc.tex
 
 PDFS = alphabets-doc.pdf
 
diff -ur -x Makefile.in -x aclocal.m4 -x configure -x autom4te.cache xindy.orig/make-rules/inputenc/Makefile.am xindy/make-rules/inputenc/Makefile.am
--- xindy.orig/make-rules/inputenc/Makefile.am	2008-02-17 16:03:56.000000000 +0100
+++ xindy/make-rules/inputenc/Makefile.am	2009-11-21 00:26:12.000000000 +0100
@@ -46,9 +46,9 @@
 	sort -u latin?.xdy | grep -v '^;' >>latin.xdy
 
 %.xdy %.idx :
-	perl ./make-testidx.pl TS1,T2A,T1 $* >$*.tex
+	perl $(srcdir)/make-testidx.pl TS1,T2A,T1 $* >$*.tex
 	latex -interaction batchmode $*.tex
-	perl ./make-inp-rules.pl <$*.idx >$*.xdy
+	perl $(srcdir)/make-inp-rules.pl <$*.idx >$*.xdy
 
 PERLSCRIPTS = \
 	make-inp-rules.pl \
diff -ur -x Makefile.in -x aclocal.m4 -x configure -x autom4te.cache xindy.orig/src/Makefile.am xindy/src/Makefile.am
--- xindy.orig/src/Makefile.am	2009-03-29 17:24:27.000000000 +0200
+++ xindy/src/Makefile.am	2009-11-20 23:59:25.000000000 +0100
@@ -30,13 +30,12 @@
 # Since automake has no CLISP support, we need to explicitly add make
 # rules to create the xindy kernel below and stop automake from
 # looking for C sources.
-pkglib_PROGRAMS = xindy.mem
-xindy_mem_SOURCES =
+pkglib_DATA = xindy.mem
 
 # Tell the dist target about our sources, define the object files for
 # our own rule and the .lib files for the clean definition. Don't use
 # gmake-isms.
-dist_xindy_mem_SOURCES = base.lsp ordrules.lsp locref.lsp idxstyle.lsp \
+dist_xindy_mem_sources = base.lsp ordrules.lsp locref.lsp idxstyle.lsp \
 			 index.lsp version.lsp markup.lsp
 FAS                    = base.fas ordrules.fas locref.fas idxstyle.fas \
 			 index.fas version.fas markup.fas
@@ -50,18 +49,18 @@
 
 xindy.mem: $(DEFAULTS) $(FAS) $(DUMP_XINDY)
 	rm -f $(MEMFILE)
-	$(CLISP) $(DUMP_XINDY)
+	$(CLISP) $(srcdir)/$(DUMP_XINDY)
 	gzip $(MEMFILE)
 	mv $(MEMFILE).gz $(MEMFILE)
 
 $(DEFAULTS): $(DEFAULTS).in Makefile
-	sed 's|@MODULEDIR[@]|$(MODULEDIR)|g' <$(DEFAULTS).in >$(DEFAULTS)
+	sed 's|@MODULEDIR[@]|$(MODULEDIR)|g' <$(srcdir)/$(DEFAULTS).in >$(DEFAULTS)
 
-EXTRA_DIST = $(DEFAULTS).in
+EXTRA_DIST = $(DEFAULTS).in $(dist_xindy_mem_sources)
 
 SUFFIXES = .fas .lsp
 .lsp.fas:
-	$(CLISP) -c $<
+	$(CLISP) -c $< -o $@
 
 
 CLEANFILES = $(FAS) $(FASLIBS) $(DEFAULTS)
diff -ur -x Makefile.in -x aclocal.m4 -x configure -x autom4te.cache xindy.orig/user-commands/Makefile.am xindy/user-commands/Makefile.am
--- xindy.orig/user-commands/Makefile.am	2009-03-29 13:16:52.000000000 +0200
+++ xindy/user-commands/Makefile.am	2009-11-20 23:12:03.000000000 +0100
@@ -23,11 +23,11 @@
 bin_SCRIPTS = texindy xindy xindy.v2
 
 xindy: xindy.in Makefile
-	sed -e 's:@libdir\@:$(libdir):' xindy.in >xindy
+	sed -e 's:@libdir\@:$(libdir):' $(srcdir)/xindy.in >xindy
 
 # FIXME: Should get Perl location from autoconf
 xindy.v2: xindy.v2.in
-	sed -e 's:@XINDY_PERL\@:/usr/bin/perl:' xindy.v2.in >xindy.v2
+	sed -e 's:@XINDY_PERL\@:/usr/bin/perl:' $(srcdir)/xindy.v2.in >xindy.v2
 
 man_MANS = texindy.1 xindy.1 xindy.v2.1