Skip to content

Commit 7b21c3a

Browse files
yadijsquid-anubis
authored andcommitted
Fix cfgman documentation release (#37)
... broken since release process moved to github releases.
1 parent fe72552 commit 7b21c3a

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

release/mk-cfgman-docs.sh

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,25 @@
66

77
. ~/.server.config || exit $?
88

9-
# Known Bug:
10-
# Does not remove references to directives dropped. This is
11-
# an issue for branch 'master' directive erasure.
9+
# clean the current workspace
10+
gitCleanWorkspace ()
11+
{
12+
git clean --quiet -xdf --exclude="\.BASE"
13+
git checkout --quiet -- .
14+
}
1215

1316
for version in `ls -1 $SQUID_VCS_PATH | grep squid | cut -d- -f2`; do
1417

15-
! test -d $SQUID_WWW_PATH/content/Versions/$version/cfgman && continue
18+
# Update the website /Versions/v*/cfgman/ HTML documents
19+
cd $SQUID_VCS_PATH/squid-$version || continue
20+
gitCleanWorkspace
21+
git checkout v$version &&
22+
./bootstrap.sh && ./configure && make -C ./doc cfgman &&
23+
mv -f -t $SQUID_WWW_PATH/content/Versions/$version/cfgman ./doc/cfgman/*
24+
gitCleanWorkspace
1625

26+
# Update the website /Doc/config/ DYN documents
27+
! test -d $SQUID_WWW_PATH/content/Versions/$version/cfgman && continue
1728
for directive in $SQUID_WWW_PATH/content/Versions/$version/cfgman/*.html; do
1829
directive=`basename $directive .html`
1930

0 commit comments

Comments
 (0)