gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 02/05: handbook: add new submodule


From: gnunet
Subject: [gnunet] 02/05: handbook: add new submodule
Date: Wed, 04 Dec 2024 16:06:30 +0100

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

commit b44aebf6268dde87dcc84532aa7b3fbb712eb25f
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Wed Dec 4 15:31:23 2024 +0100

    handbook: add new submodule
---
 .gitmodules              |  4 ++++
 bootstrap                |  6 ------
 doc/handbook             |  1 +
 scripts/sphinx_update.sh | 35 -----------------------------------
 4 files changed, 5 insertions(+), 41 deletions(-)

diff --git a/.gitmodules b/.gitmodules
index e69de29bb..b1d6bd2ee 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -0,0 +1,4 @@
+[submodule "doc/handbook"]
+       path = doc/handbook
+       url = git://git.gnunet.org/gnunet-handbook.git
+       branch = prebuilt
diff --git a/bootstrap b/bootstrap
index 8cf640ae7..7dd323e1d 100755
--- a/bootstrap
+++ b/bootstrap
@@ -111,11 +111,6 @@ install_hooks()
   ln -fs $(pwd)/contrib/conf/commit-msg .git/hooks/commit-msg 2> /dev/null
 }
 
-create_handbook()
-{
-    . "scripts/sphinx_update.sh" || exit 1
-}
-
 pogen()
 {
     . "scripts/pogen.sh" || exit 1
@@ -132,7 +127,6 @@ main()
     submodules
     check_uncrustify
     check_yapf
-    create_handbook
     update_gana
     if [ "$1" = "meson" ]; then
       echo "Skipping autoreconf"
diff --git a/doc/handbook b/doc/handbook
new file mode 160000
index 000000000..9f7f776c2
--- /dev/null
+++ b/doc/handbook
@@ -0,0 +1 @@
+Subproject commit 9f7f776c24dd8b46c7ec811a05d1b8597b68de6c
diff --git a/scripts/sphinx_update.sh b/scripts/sphinx_update.sh
deleted file mode 100755
index 6d589667c..000000000
--- a/scripts/sphinx_update.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-# This is more portable than `which' but comes with
-# the caveat of not(?) properly working on busybox's ash:
-existence()
-{
-    type "$1" >/dev/null 2>&1
-}
-
-sphinx_update()
-{
-    echo "Updating handbook..."
-    if existence sphinx-build; then
-      cwd=$PWD
-      cd contrib/handbook || exit 1
-      if test -e _build; then
-        make clean
-      fi
-      # GNS
-      make html >/dev/null || exit 1
-      if test -e ../../doc/handbook/html; then
-        rm -r ../../doc/handbook/html || exit 1
-      fi
-      cp -r _build/html ../../doc/handbook/ || exit 1
-      if test -e ../../doc/handbook/texinfo; then
-        rm -r ../../doc/handbook/texinfo || exit 1
-      fi
-      make info >/dev/null || exit 1
-      cp -r _build/texinfo ../../doc/handbook/ || exit 1
-      cd $cwd
-    else
-      echo "ERROR: Sphinx not found! Unable to generate recent documentation."
-      exit 1
-    fi
-}
-
-sphinx_update

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]