File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ MAN7_TXT += gitworkflows.txt
39
39
MAN_TXT = $(MAN1_TXT ) $(MAN5_TXT ) $(MAN7_TXT )
40
40
MAN_XML = $(patsubst % .txt,% .xml,$(MAN_TXT ) )
41
41
MAN_HTML = $(patsubst % .txt,% .html,$(MAN_TXT ) )
42
+ GIT_MAN_REF = master
42
43
43
44
OBSOLETE_HTML += everyday.html
44
45
OBSOLETE_HTML += git-remote-helpers.html
@@ -437,14 +438,14 @@ require-manrepo::
437
438
then echo " git-manpages repository must exist at $( MAN_REPO) " ; exit 1; fi
438
439
439
440
quick-install-man : require-manrepo
440
- ' $(SHELL_PATH_SQ)' ./install-doc-quick.sh $(MAN_REPO ) $(DESTDIR )$(mandir )
441
+ ' $(SHELL_PATH_SQ)' ./install-doc-quick.sh $(MAN_REPO ) $(DESTDIR )$(mandir ) $( GIT_MAN_REF )
441
442
442
443
require-htmlrepo ::
443
444
@if test ! -d $(HTML_REPO ) ; \
444
445
then echo " git-htmldocs repository must exist at $( HTML_REPO) " ; exit 1; fi
445
446
446
447
quick-install-html : require-htmlrepo
447
- ' $(SHELL_PATH_SQ)' ./install-doc-quick.sh $(HTML_REPO ) $(DESTDIR )$(htmldir )
448
+ ' $(SHELL_PATH_SQ)' ./install-doc-quick.sh $(HTML_REPO ) $(DESTDIR )$(htmldir ) $( GIT_MAN_REF )
448
449
449
450
print-man1 :
450
451
@for i in $(MAN1_TXT ) ; do echo $$ i; done
Original file line number Diff line number Diff line change 3
3
4
4
repository=${1?repository}
5
5
destdir=${2?destination}
6
+ GIT_MAN_REF=${3?master}
6
7
7
- head=master GIT_DIR=
8
+ GIT_DIR=
8
9
for d in " $repository /.git" " $repository "
9
10
do
10
- if GIT_DIR=" $d " git rev-parse refs/heads/master > /dev/null 2>&1
11
+ if GIT_DIR=" $d " git rev-parse " $GIT_MAN_REF " > /dev/null 2>&1
11
12
then
12
13
GIT_DIR=" $d "
13
14
export GIT_DIR
@@ -27,12 +28,12 @@ export GIT_INDEX_FILE GIT_WORK_TREE
27
28
rm -f " $GIT_INDEX_FILE "
28
29
trap ' rm -f "$GIT_INDEX_FILE"' 0
29
30
30
- git read-tree $head
31
+ git read-tree " $GIT_MAN_REF "
31
32
git checkout-index -a -f --prefix=" $destdir " /
32
33
33
34
if test -n " $GZ "
34
35
then
35
- git ls-tree -r --name-only $head |
36
+ git ls-tree -r --name-only " $GIT_MAN_REF " |
36
37
xargs printf " $destdir /%s\n" |
37
38
xargs gzip -f
38
39
fi
You can’t perform that action at this time.
0 commit comments