diff --git a/website-build/build.sh b/website-build/build.sh index 80ca893..bf71935 100755 --- a/website-build/build.sh +++ b/website-build/build.sh @@ -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