website-build: build.sh: Start switching to GNU Boot.
The GNU Boot website currently requires the Untitled static website generator to be built. Since Untitled has specific requirements to build websites (like having the website code in a specific directory), cannot use symlinks for security reasons, and isn't packaged in GNU/Linux distributions, using code to wrap the build makes contribution way easier. Guix is currently optional and it's used to make it easier for contributors to install all the required dependencies. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
This commit is contained in:
parent
f53efb5213
commit
e98ce9898d
|
@ -17,14 +17,15 @@
|
|||
# For compatibility with sysexits.h (see man 3 sysexits.h for more details)
|
||||
EX_USAGE=64
|
||||
|
||||
lbwww_uri="https://git.sr.ht/~libreboot/lbwww"
|
||||
lbwww_uri="https://git.savannah.gnu.org/git/gnuboot.git"
|
||||
lbwww_path=""
|
||||
|
||||
lbwww_img_uri="https://git.sr.ht/~libreboot/lbwww-img"
|
||||
lbwww_img_uri="https://git.savannah.gnu.org/git/gnuboot.git"
|
||||
lbwww_img_path=""
|
||||
|
||||
untitled_uri="https://git.sr.ht/~libreboot/untitled"
|
||||
untitled_uri="https://notabug.org/untitled/untitled.git"
|
||||
untitled_path=""
|
||||
untitled_commit="e69c0d0748b8fc58d1548ea4249b93b1bbd2c6aa"
|
||||
|
||||
help()
|
||||
{
|
||||
|
@ -68,7 +69,9 @@ sync_repo()
|
|||
git -C "${dst_path}" remote add origin "${src_uri}"
|
||||
git -C "${dst_path}" remote set-url origin "${src_uri}"
|
||||
git -C "${dst_path}" clean -dfx
|
||||
git -C "${dst_path}" pull --rebase
|
||||
git -C "${dst_path}" fetch origin
|
||||
git -C "${dst_path}" checkout "${src_revision}"
|
||||
|
||||
else
|
||||
rm -rf "${dst_path}"
|
||||
cp -a "${src_path}" "${dst_path}"
|
||||
|
@ -128,9 +131,12 @@ done
|
|||
|
||||
set -e
|
||||
|
||||
sync_repo "untitled" "${untitled_uri}" "${untitled_path}"
|
||||
sync_repo "untitled/www/lbwww" "${lbwww_uri}" "${lbwww_path}"
|
||||
sync_repo "untitled/www/lbwww/site/img" "${lbwww_img_uri}" "${lbwww_img_path}"
|
||||
sync_repo "untitled" \
|
||||
"${untitled_uri}" "${untitled_path}" "${untitled_commit}"
|
||||
sync_repo "untitled/www/lbwww" \
|
||||
"${lbwww_uri}" "${lbwww_path}" "origin/main"
|
||||
sync_repo "untitled/www/lbwww/site/img" \
|
||||
"${lbwww_img_uri}" "${lbwww_img_path}" "origin/main"
|
||||
|
||||
cd untitled
|
||||
./build sites lbwww
|
||||
|
|
Loading…
Reference in New Issue