libreoffice: update to 24.8.4.2
[oi-userland.git] / components / library / ck / patches / 02-manpages.patch
blobaaca55c631c416ec62e4c05bfa62d35929319667
1 --- ck-0.5.2/doc/Makefile.in.orig 2017-01-20 17:23:59.365885969 +0100
2 +++ ck-0.5.2/doc/Makefile.in 2017-01-20 17:28:59.305434266 +0100
3 @@ -2,7 +2,7 @@
5 MANDIR=@MANDIR@
6 GZIP=@GZIP@
7 -GZIP_SUFFIX=.3@GZIP_SUFFIX@
8 +MAN_SUFFIX=.3
9 BUILD_DIR=@BUILD_DIR@
10 SRC_DIR=@SRC_DIR@
11 HTML_SUFFIX=.html
12 @@ -180,7 +180,7 @@
14 all:
15 for target in $(OBJECTS); do \
16 - $(GZIP) $(SRC_DIR)/doc/$$target > $(BUILD_DIR)/doc/$$target$(GZIP_SUFFIX); \
17 + cp $(SRC_DIR)/doc/$$target $(BUILD_DIR)/doc/$$target$(MAN_SUFFIX); \
18 done
20 html:
21 @@ -188,14 +188,14 @@
22 echo $$target; \
23 groff -man -Tascii $(SRC_DIR)/doc/$$target | col -bx > \
24 $(BUILD_DIR)/doc/$$target$(HTML_SUFFIX); \
25 - sed -i.bk 's/\&/\&amp\;/g;s/>/\&gt\;/g;s/</\&lt\;/g;' \
26 + gsed -i.bk 's/\&/\&amp\;/g;s/>/\&gt\;/g;s/</\&lt\;/g;' \
27 $(BUILD_DIR)/doc/$$target$(HTML_SUFFIX); \
28 done
30 # check for entries that are missing in OBJECTS
31 objcheck: all
32 - for file in `ls * | egrep '(ck|CK)_' | egrep -v "($(GZIP_SUFFIX)|$(HTML_SUFFIX))$$"`; do \
33 - if [ ! -f $${file}$(GZIP_SUFFIX) ]; then \
34 + for file in `ls * | egrep '(ck|CK)_' | egrep -v "($(MAN_SUFFIX)|$(HTML_SUFFIX))$$"`; do \
35 + if [ ! -f $${file}$(MAN_SUFFIX) ]; then \
36 echo "$$file is missing from OBJECTS" >&2; \
37 fi; \
38 done
39 @@ -206,13 +206,13 @@
41 install:
42 mkdir -p $(DESTDIR)/$(MANDIR)/man3 || exit
43 - cp *$(GZIP_SUFFIX) $(DESTDIR)/$(MANDIR)/man3 || exit
44 + cp *$(MAN_SUFFIX) $(DESTDIR)/$(MANDIR)/man3 || exit
46 uninstall:
47 for target in $(OBJECTS); do \
48 - rm -f $(DESTDIR)/$(MANDIR)/man3/$$target$(GZIP_SUFFIX); \
49 + rm -f $(DESTDIR)/$(MANDIR)/man3/$$target$(MAN_SUFFIX); \
50 done
52 clean:
53 - rm -f $(BUILD_DIR)/doc/*~ $(BUILD_DIR)/doc/*$(GZIP_SUFFIX) $(BUILD_DIR)/doc/*$(HTML_SUFFIX)
54 + rm -f $(BUILD_DIR)/doc/*~ $(BUILD_DIR)/doc/*$(MAN_SUFFIX) $(BUILD_DIR)/doc/*$(HTML_SUFFIX)