diff options
author | Wojtek Kosior <koszko@koszko.org> | 2023-12-12 17:27:58 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2023-12-12 18:29:22 +0100 |
commit | 14d9bab290b1356c856631ebcbb460fffeecb943 (patch) | |
tree | 38f9f13ade5ad4761affc69a49d9ddd8f231e783 /koszko-rebase.sh | |
download | guix-14d9bab290b1356c856631ebcbb460fffeecb943.tar.gz guix-14d9bab290b1356c856631ebcbb460fffeecb943.zip |
Initial commit.
Diffstat (limited to 'koszko-rebase.sh')
-rwxr-xr-x | koszko-rebase.sh | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/koszko-rebase.sh b/koszko-rebase.sh new file mode 100755 index 0000000000..f1b7bb16d3 --- /dev/null +++ b/koszko-rebase.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +# SPDX-License-Identifier: CC0-1.0 +# Copyright (C) 2023 Wojtek Kosior <koszko@koszko.org> + +set -eu + +KOSZKO_BRANCHES="readme pantalaimon guile-libraries localhost-repo-server" + +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))) |