From a5742ec0d46f60fcbeec141744a2e35a9e5dd6d5 Mon Sep 17 00:00:00 2001 From: merakor Date: Fri, 24 Jul 2020 09:45:05 +0000 Subject: contrib: rename scripts FossilOrigin-Name: d35a756a5d603ac894873aeb0a30826cb4b3fe9e257ecf21298225e07f517ddd --- contrib/cpt-reset | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 contrib/cpt-reset (limited to 'contrib/cpt-reset') diff --git a/contrib/cpt-reset b/contrib/cpt-reset new file mode 100755 index 0000000..326cb80 --- /dev/null +++ b/contrib/cpt-reset @@ -0,0 +1,24 @@ +#!/bin/sh -ef +# Remove all packages except for the base +# +# Disable word-splittng warnings as they're safe here. +# shellcheck disable=SC2046 + +set -- + +while read -r pkg _; do + case $pkg in + baselayout|binutils|bison|busybox|bzip2|curl|flex|gcc|rsync|\ + gzip|kiss|libressl|linux-headers|m4|make|musl|pkgconf|xz|zlib) ;; + + *) set -- "$@" "$pkg" ;; + esac +done <