Fix issue #467 Adding wiki as submodule to repo

* bootstrap.conf: Add clone_wiki() and call it from
  bootstrap_post_import_hook().

Signed-off-by: Jeffrey Marius <getjff@gmail.com>
This commit is contained in:
Jeffrey Marius
2021-08-07 16:42:40 +05:30
committed by Tim Rühsen
parent 5dedff4c42
commit 7c7bbf2c27
3 changed files with 18 additions and 0 deletions

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule "gnulib"]
path = gnulib
url = https://git.savannah.gnu.org/git/gnulib.git
[submodule "wiki"]
path = wiki
url = https://gitlab.com/gnuwget/wget2.wiki.git

View File

@ -164,6 +164,18 @@ pkg-config -
tar -
"
clone_wiki() {
echo "Wget2 Wiki Cloning in progress..."
git submodule update --init -- wiki
wiki_status=$?
if [ $wiki_status -eq 0 ]
then
echo "\e[1;32mWiki pages cloned\e[0m"
else
echo "\e[1;31mUnable to clone wiki but no issues you can continue\e[0m"
fi
}
bootstrap_epilogue() {
rm -f tests/.gitignore
rm -f tests/_Noreturn.h \
@ -181,4 +193,6 @@ bootstrap_post_import_hook ()
# build. ./bootstrap will create po/Makevars from po/Makevars.template
# after our change.
echo 'PACKAGE_GNU = yes' >> po/Makevars.template
clone_wiki
}

1
wiki Submodule

Submodule wiki added at 5b86a95353