]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/blame_incremental - scripts/make-nur
Patch taskwarrior for truncated descriptions
[perso/Immae/Config/Nix/NUR.git] / scripts / make-nur
... / ...
CommitLineData
1#!/bin/bash
2
3set -e
4
5tmp=$(mktemp -d)
6git clone . $tmp
7cd $tmp
8
9trap "rm -rf $tmp" EXIT
10
11git remote add NUR gitolite@git.immae.eu:perso/Immae/Config/Nix/NUR
12git fetch --tags NUR
13# tag nur_root on perso/Immae/Config/Nix/NUR
14nur_root="252dd7d899b7a0deea1537cc5d2d48b825afffb0"
15# tag nur_publish on perso/Immae/Config/Nix
16first_commit="5145061e9b679ea1e5d2709d22d0ee53467fed15"
17git rebase --onto=$nur_root $first_commit master
18
19clean_folder='
20 rm -rf config lib/private modules/private pkgs/private nixops
21 for broken in pkgs/crypto/cardano/default.nix; do
22 if [ -f $broken ]; then
23 rm -f $broken
24 cat > $broken <<-EOF
25 { runCommand, mylibs }:
26 runCommand "empty" { preferLocalBuild = true; } "mkdir -p \$out"
27 EOF
28 fi
29 done
30'
31
32git filter-branch --tree-filter "$clean_folder" --prune-empty master
33git push NUR +master