#!/bin/sh # SPDX-License-Identifier: CC0-1.0 # Copyright (C) 2023 Wojtek Kosior set -eu KOSZKO_BRANCHES="readme pantalaimon cgit exim ca certbot overlayfs extra-groups guile-libraries localhost-repo-server vpath-builds sqlite-register-renamed" cd "$(dirname "$0")" git checkout koszko git reset --hard master for BRANCH_SUFFIX in $KOSZKO_BRANCHES; do git checkout koszko-"$BRANCH_SUFFIX" git rebase master git checkout koszko-work git reset --hard koszko-"$BRANCH_SUFFIX" git rebase koszko git checkout koszko git reset --hard koszko-work done git rm .guix-authorizations git commit -m "Allow unauthorized \`guix pull\`" git checkout koszko-localhost-urls git reset --hard koszko MODIFIED="$(grep 'url "https://git.koszko.org' gnu/packages/*.scm | awk -F: '{print $1}' | sort | uniq)" sed -i 's|url \"https://git.koszko.org/|url \"http://localhost:8098/|g' \ $MODIFIED git commit -m "Replace git.koszko.org URLs with local ones" $MODIFIED # optionally, do # guix shell -D guix -- make -j$((1 + $(nproc)))