source: patches/bzip2-1.0.3-install_docs-1.patch@ bd2e5bb

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since bd2e5bb was 69cde8d, checked in by Jim Gifford <clfs@…>, 19 years ago

Added: All patches needed for the book.

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[69cde8d]1Submitted By: Matthew Burgess <matthew@linuxfromscratch.org>
2Date: 2005-08-03
3Initial Package Version: 1.0.3
4Upstream Status: Not submitted
5Origin: Randy McMurchy & Steve Crosby
6Description: Installs pre-formatted documentation
7
8diff -Naur bzip2-1.0.3.orig/Makefile bzip2-1.0.3/Makefile
9--- bzip2-1.0.3.orig/Makefile 2005-02-17 11:28:24.000000000 +0000
10+++ bzip2-1.0.3/Makefile 2005-08-14 13:08:25.626703640 +0000
11@@ -12,6 +12,7 @@
12
13 # Where you want it installed when you do 'make install'
14 PREFIX=/usr
15+DOCDIR=share/doc/$(DISTNAME)
16
17
18 OBJS= blocksort.o \
19@@ -61,6 +62,7 @@
20 if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi
21 if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi
22 if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi
23+ if ( test ! -d $(PREFIX)/$(DOCDIR) ) ; then mkdir -p $(PREFIX)/$(DOCDIR); fi
24 if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi
25 cp -f bzip2 $(PREFIX)/bin/bzip2
26 cp -f bzip2 $(PREFIX)/bin/bunzip2
27@@ -94,6 +96,14 @@
28 echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1
29 echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1
30 echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1
31+ cp -f manual.html $(PREFIX)/$(DOCDIR)
32+ cp -f manual.pdf $(PREFIX)/$(DOCDIR)
33+ cp -f manual.ps $(PREFIX)/$(DOCDIR)
34+ cp -f bzip2.txt $(PREFIX)/$(DOCDIR)
35+ chmod a+r $(PREFIX)/$(DOCDIR)/manual.html
36+ chmod a+r $(PREFIX)/$(DOCDIR)/manual.pdf
37+ chmod a+r $(PREFIX)/$(DOCDIR)/manual.ps
38+ chmod a+r $(PREFIX)/$(DOCDIR)/bzip2.txt
39
40 clean:
41 rm -f *.o libbz2.a bzip2 bzip2recover \
Note: See TracBrowser for help on using the repository browser.