summaryrefslogtreecommitdiff
blob: de6df69900de04a55b418f4f2c88d7fbc05818a4 (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
--- pl-5.6.4.orig/packages/ltx2htm/doc2tex	1997-01-21 06:39:40.000000000 +1300
+++ pl-5.6.4/packages/ltx2htm/doc2tex	2006-02-13 23:29:54.000000000 +1300
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
 
 sub printTeX
 { s/`([@\w]+)\s*<->(\w+)/\\index{\l\1,\\both{\2}}`\1 \\both{\2}/g;
--- pl-5.6.17.orig/packages/ltx2htm/Makefile.in	2005-12-02 21:53:05.000000000 +1300
+++ pl-5.6.17/packages/ltx2htm/Makefile.in	2006-08-26 16:12:20.000000000 +1200
@@ -11,9 +11,11 @@
 
 MAKE=@MAKE@
 
-PL=@PL@
+PL=../@PL@.sh
+PLBASE=@PLBASE@
 PLARCH=@PLARCH@
 PLHOME=@PLHOME@
+PKGDOC=$(PLBASE)/doc/packages
 prefix=@prefix@
 exec_prefix=@exec_prefix@
 bindir=@bindir@
@@ -38,32 +40,29 @@
 OBJ=	tex.o psfile.o
 LIB=	latex2html.pl latex.cmd pl.pl pl.cmd xpce.pl xpce.cmd
 
-all:
-	@echo "==============================================================="
-	@echo "Usage:"
-	@echo ""
-	@echo "$(MAKE) install        Install the package"
-	@echo "$(MAKE) html           Translate the documentation into HTML"
-	@echo "$(MAKE) dvi            Translate the documentation into DVI"
-	@echo "==============================================================="
+all:		tex.@SO@
 
 install:	tex.@SO@
-	mkdir -p $(DESTDIR)$(LIBDIR)/lib/$(PLARCH)
-	$(INSTALL_DATA) tex.@SO@ $(DESTDIR)$(LIBDIR)/lib/$(PLARCH)
-	$(INSTALL_PROGRAM) latex2html $(DESTDIR)$(bindir)
-	for f in $(LIB); do $(INSTALL_DATA) $$f $(DESTDIR)$(LIBDIR); done
-	mkdir -p $(DESTDIR)$(LIBDIR)/icons
-	for f in icons/*.gif; do $(INSTALL_DATA) $$f $(DESTDIR)$(LIBDIR)/icons; done
+	mkdir -p $(DESTDIR)$(PLBASE)/lib/$(PLARCH)
+	$(INSTALL_DATA) -m 755 tex.@SO@ $(DESTDIR)$(PLBASE)/lib/$(PLARCH)
+	mkdir -p $(DESTDIR)$(PLBASE)/library
+	for f in $(LIB); do $(INSTALL_DATA) $$f $(DESTDIR)$(PLBASE)/library; done
 
 tex.@SO@:		$(OBJ)
 	$(LD) $(LDFLAGS) -o $@ $(OBJ)
 
+html-install:	html
+	mkdir -p $(DESTDIR)$(PKGDOC)/latex2html
+	for f in manual/*; do $(INSTALL_DATA) $$f $(DESTDIR)$(PKGDOC)/latex2html; done
+
+check::
+
 ################################################################
 # Documentation
 ################################################################
 
 html:	manual.tex
-	latex2html manual
+	$(PL) -p library=. -f none -g "assert(user:file_search_path(foreign, '.')),load_files(library(latex2html),[silent(true)]),latex2html('manual.tex')" -t halt
 
 dvi:	manual.tex
 	latex manual