From 26b574cec4b5d1d70baf1d33f36e410fbe2bf176 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 1 Jun 2016 15:00:14 -0400 Subject: *.sh: Add boilerplate that I was running as one-liners. --- move.sh | 9 +++++++++ reset.sh | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100644 reset.sh diff --git a/move.sh b/move.sh index 5fe8126170..7b29fdd87c 100755 --- a/move.sh +++ b/move.sh @@ -11,6 +11,8 @@ in_array() { set -e +git checkout -b postmove + ( for d in libsystemd libudev machine resolve; do mkdir src/$d-new @@ -139,3 +141,10 @@ set -e -exec grep '#include "sd-' -l -- {} + | xargs -d $'\n' sed -ri 's|#include "(sd-[^"]*)"|#include |' ) + +git add . +git commit -m './move.sh' +git merge -s ours lukeshu/postmove +git checkout lukeshu/postmove +git merge postmove +git branch -d postmove diff --git a/reset.sh b/reset.sh new file mode 100644 index 0000000000..fe2eb19a44 --- /dev/null +++ b/reset.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +set -e +git checkout lukeshu/premove +git branch -D postmove +git checkout . +git clean -xdf -- cgit v1.2.3-54-g00ecf