FBDH2MIMD6KYJL4DV2THH4BMQWR7UKNSPORBKQUADQBFS4BLAX6QC #!/bin/bash -x# TODO:# - pijul diff --short | wc -l inside loop, must be always 0.# mount -t tmpfs -o size=3g tmpfs /mnt/linux2xR="/mnt/linux2x/repo/"rm -rf ${R:?}pijul init "$R"tar -xJf kernel/linux-2.0.1.tar.xz -C "$R" --strip-components=1(cd "$R" && pijul add -r * && pijul rec -am".")for i in {2..4}doxzcat patches/patch-2.0."$i".xz | patch -p1 -sd "$R"(cd "$R" && pijul add -r * && pijul rec -am".")done# record to branch, apply 2.0.5 back to main(cd "$R" && pijul fork 205 && pijul channel switch 205)xzcat patches/patch-2.0.5.xz | patch -p1 -sd "$R"(cd "$R" && pijul add -r * && pijul rec -am".")H=$(cd "$R" && pijul log --hash-only | head -1)(cd "$R" ; pijul apply --channel main "$H" ; pijul channel switch main ; pijul channel delete 205)for i in {6..9}doxzcat patches/patch-2.0."$i".xz | patch -p1 -sd "$R"(cd "$R" && pijul add -r * && pijul rec -am".")done
#!/bin/bash# untar kernel and test-check *all* patches could apply.# RESULT: All patches applies clearly#set -x# mount -t tmpfs -o size=3g tmpfs /mnt/linux2xR="/mnt/linux2x/"rm -rf ${R:?}/*tar -xJf kernel/linux-2.0.1.tar.xz -C "$R" --strip-components=1for i in {2..40}doxzcat patches/patch-2.0."$i".xz | patch -p1 -sd /mnt/linux2xdone
Trivial and robust script(s) to test `pijul` the way how I feel it.Have fun!
THE FREEDOM PUBLIC LICENSEVersion 1, January 2021Copyright (C) 2021 Mike <tankf33der@disroot.org>Everyone is permitted to copy and distribute verbatim or modifiedcopies of this license document, and changing it is allowed as longas the name is changed.THE FREEDOM PUBLIC LICENSETERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION0. You just DO WHAT YOU WANT TO.