chore: cascade vendor initialization

This commit is contained in:
Rodney, Tiara 2025-03-23 21:05:26 +01:00
parent 52720f91c3
commit c559d57e12
No known key found for this signature in database
GPG key ID: 5CD8EC1D46106723
2 changed files with 9 additions and 114 deletions

View file

@ -6,19 +6,15 @@ AC_CHECK_PROGS([REALPATH], [realpath])
AC_CHECK_PROGS([GIT], [git])
AC_CHECK_PROGS([PYTHON3], [python3])
AC_MSG_NOTICE([initializing Git submodules...])
git submodule update --init --remote --recursive
# HTML theme reference dependency for dynamic building, alternatively this could
# be removed and instead the HTML theme reference could be statically integrated
# by storing the build package archive under vendor/ instead and untar the
# archive into src/<whatever>.
AC_MSG_NOTICE([checking for vendor build dependencies...])
AC_CHECK_PROGS([NPM], [npm])
AC_CHECK_PROGS([NODE], [node])
AC_MSG_NOTICE([initializing Git submodules...])
git submodule update --init --remote --recursive
AC_MSG_NOTICE([initializing vendors...])
sh -xc "cd vendor/html-theme-ref && npm install"
sh -xc "cd vendor/html-theme-ref && sh ./configure"
AC_MSG_NOTICE([initializing python3 venv...])
python3 -m venv .venv