mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
17 lines
334 B
Bash
Executable File
17 lines
334 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
|