1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-06 22:51:41 +00:00
freebsd-ports/print/lout/files/patch-01
Masafumi Max NAKANE 5b99e06460 Modify this patch to change the original makefile's installdoc target
`make reinstall' won't install docs into wrong place.
Noticed by:	obrien
(Closing PR #2132.)

Also some modification to change the makefile's install* targets to
do chown bin.bin on installed files.
1996-12-19 11:11:48 +00:00

125 lines
3.4 KiB
Plaintext

--- makefile.orig Wed May 8 19:33:44 1996
+++ makefile Thu Dec 19 19:57:02 1996
@@ -203,15 +203,16 @@
USESTAT = 1
-BINDIR = /u12/staff/jeff/bin
-LIBDIR = /u12/staff/jeff/lout.lib
-DOCDIR = /u12/staff/jeff/lout.doc
-MANDIR = /u12/staff/jeff/lout.man
+PREFIX ?= /usr/local
+BINDIR = $(PREFIX)/bin
+LIBDIR = $(PREFIX)/share/lout
+DOCDIR = $(PREFIX)/share/doc/lout
+MANDIR = $(PREFIX)/man/man1
CHARIN = 1
CHAROUT = 0
-USELOC = 1
+USELOC = 0
LOC_FR = fr
LOC_DE = de
@@ -259,39 +260,41 @@
@echo "(a) Installing Lout and c2lout binaries into BINDIR $(BINDIR)"
cp lout $(BINDIR)/lout
chmod 755 $(BINDIR)/lout
+ chown bin.bin $(BINDIR)/lout
cp c2lout $(BINDIR)/c2lout
chmod 755 $(BINDIR)/c2lout
+ chown bin.bin $(BINDIR)/c2lout
@echo ""
@echo "(b) Installing library files into LIBDIR $(LIBDIR)"
- mkdir $(LIBDIR)
+ -mkdir $(LIBDIR)
chmod 755 $(LIBDIR)
@echo ""
- mkdir $(LIBDIR)/include
+ -mkdir $(LIBDIR)/include
chmod 755 $(LIBDIR)/include
cp include/* $(LIBDIR)/include
chmod 644 $(LIBDIR)/include/*
@echo ""
- mkdir $(LIBDIR)/data
+ -mkdir $(LIBDIR)/data
chmod 755 $(LIBDIR)/data
cp data/* $(LIBDIR)/data
chmod 644 $(LIBDIR)/data/*
@echo ""
- mkdir $(LIBDIR)/hyph
+ -mkdir $(LIBDIR)/hyph
chmod 755 $(LIBDIR)/hyph
cp hyph/* $(LIBDIR)/hyph
chmod 644 $(LIBDIR)/hyph/*
@echo ""
- mkdir $(LIBDIR)/font
+ -mkdir $(LIBDIR)/font
chmod 755 $(LIBDIR)/font
cp font/* $(LIBDIR)/font
chmod 644 $(LIBDIR)/font/*
@echo ""
- mkdir $(LIBDIR)/maps
+ -mkdir $(LIBDIR)/maps
chmod 755 $(LIBDIR)/maps
cp maps/* $(LIBDIR)/maps
chmod 644 $(LIBDIR)/maps/*
@echo ""
- mkdir $(LIBDIR)/locale
+ -mkdir $(LIBDIR)/locale
chmod 755 $(LIBDIR)/locale
@echo ""
@echo "(c) Initializing run (should be silent, no errors expected)"
@@ -300,6 +303,7 @@
@echo "(d) Changing mode of files just created by initializing run"
chmod 644 $(LIBDIR)/data/*
chmod 644 $(LIBDIR)/hyph/*
+ chown -R bin.bin $(LIBDIR)
installman:
@echo ""
@@ -308,23 +312,27 @@
-e "s@<DOCDIR>@$(DOCDIR)@" -e "s@<MANDIR>@$(MANDIR)@" \
man/lout.1 > $(MANDIR)/lout.1
chmod 644 $(MANDIR)/lout.1
+ chown bin.bin $(MANDIR)/lout.1
cp man/c2lout.1 $(MANDIR)/c2lout.1
chmod 644 $(MANDIR)/c2lout.1
+ chown bin.bin $(MANDIR)/c2lout.1
installdoc:
@echo ""
@echo "Creating DOCDIR $(DOCDIR) and copying documentation into it"
- cp -r doc $(DOCDIR)
+ -mkdir $(DOCDIR)
+ cp -r doc/* $(DOCDIR)
chmod 755 $(DOCDIR)
chmod 755 $(DOCDIR)/*
chmod 644 $(DOCDIR)/*/*
+ chown -R bin.bin $(DOCDIR)
installfr:
@echo ""
@echo "Installing French error messages into $(LIBDIR)/locale/$(LOC_FR)"
- mkdir $(LIBDIR)/locale/$(LOC_FR)
+ -mkdir $(LIBDIR)/locale/$(LOC_FR)
chmod 755 $(LIBDIR)/locale/$(LOC_FR)
- mkdir $(LIBDIR)/locale/$(LOC_FR)/LC_MESSAGES
+ -mkdir $(LIBDIR)/locale/$(LOC_FR)/LC_MESSAGES
chmod 755 $(LIBDIR)/locale/$(LOC_FR)/LC_MESSAGES
cp locale/msgs.fr $(LIBDIR)/locale/$(LOC_FR)/LC_MESSAGES/msgs.$(LOC_FR)
gencat $(LIBDIR)/locale/$(LOC_FR)/LC_MESSAGES/errors.$(LOC_FR) \
@@ -334,9 +342,9 @@
installde:
@echo ""
@echo "Installing German error messages into $(LIBDIR)/locale/$(LOC_DE)"
- mkdir $(LIBDIR)/locale/$(LOC_DE)
+ -mkdir $(LIBDIR)/locale/$(LOC_DE)
chmod 755 $(LIBDIR)/locale/$(LOC_DE)
- mkdir $(LIBDIR)/locale/$(LOC_DE)/LC_MESSAGES
+ -mkdir $(LIBDIR)/locale/$(LOC_DE)/LC_MESSAGES
chmod 755 $(LIBDIR)/locale/$(LOC_DE)/LC_MESSAGES
cp locale/msgs.de $(LIBDIR)/locale/$(LOC_DE)/LC_MESSAGES/msgs.$(LOC_DE)
gencat $(LIBDIR)/locale/$(LOC_DE)/LC_MESSAGES/errors.$(LOC_DE) \