Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3af9d95

Browse files
author
Thomas G. Lockhart
committed
Try to get only html and gif files into tarballs.
Was picking up subdirectories and other garbage.
1 parent b43b8fb commit 3af9d95

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

doc/src/Makefile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SRCDIR= ../../src
66

77
TAR= tar
88
ZIP= gzip
9-
TAREXCLUDE= --exclude=Makefile --exclude='*.sgml'
9+
TAREXCLUDE= --exclude=Makefile --exclude='*.sgml' --exclude=ref
1010

1111
# Pick up Makefile.global from the source area
1212
# This is the only resource from the code source area and is optional
@@ -43,27 +43,32 @@ sources.tar:
4343
admin.tar:
4444
$(MAKE) -C sgml clean
4545
$(MAKE) -C sgml admin.html
46-
($(TAR) -cf $@ $(TAREXCLUDE) -C sgml . -C .. -C graphics layout.gif)
46+
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics layout.gif)
47+
48+
installation.tar:
49+
$(MAKE) -C sgml clean
50+
$(MAKE) -C sgml installation.html
51+
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm)
4752

4853
postgres.tar:
4954
$(MAKE) -C sgml clean
5055
$(MAKE) -C sgml postgres.html
51-
($(TAR) -cf $@ $(TAREXCLUDE) -C sgml . -C .. -C graphics catalogs.gif connections.gif layout.gif)
56+
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif connections.gif layout.gif)
5257

5358
programmer.tar:
5459
$(MAKE) -C sgml clean
5560
$(MAKE) -C sgml programmer.html
56-
($(TAR) -cf $@ $(TAREXCLUDE) -C sgml . -C .. -C graphics catalogs.gif connections.gif)
61+
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif connections.gif)
5762

5863
tutorial.tar:
5964
$(MAKE) -C sgml clean
6065
$(MAKE) -C sgml tutorial.html
61-
($(TAR) -cf $@ $(TAREXCLUDE) -C sgml . -C .. -C graphics clientserver.gif)
66+
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) -C sgml . -C .. -C graphics clientserver.gif)
6267

6368
user.tar:
6469
$(MAKE) -C sgml clean
6570
$(MAKE) -C sgml user.html
66-
($(TAR) -cf $@ $(TAREXCLUDE) -C sgml .)
71+
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm)
6772

6873
# Generic production rules
6974

0 commit comments

Comments
 (0)