Lakka-LibreELEC/tools/RPi/rpi-kodi-rebase.sh
2016-08-01 21:37:50 +01:00

17 lines
335 B
Bash
Executable File

#!/bin/bash
TODO=$1
# Drop commits not used
DROP_COMMITS="
UNSTABLE\: This is a placeholder\. Commits after this point are considered experimental\.
"
IFS=$'\n'
for COMMIT in $DROP_COMMITS; do
sed -i -E "s/^pick ([0-9a-f]+) (${COMMIT}.*)/drop \1 \2/g" $TODO
done
grep -E "^drop " $TODO > /tmp/dropped
sed -i -E "/^drop /d" $TODO