File: git-rm-for-kernel.sh

package info (click to toggle)
klibc 2.0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,204 kB
  • sloc: ansic: 48,657; asm: 2,204; perl: 693; makefile: 220; sh: 177
file content (17 lines) | stat: -rwxr-xr-x 362 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
if [ -z "$RM" ]; then
  export RM='git rm -rf'
fi

nuke () {
    find "$@" -print | sort -r | xargs -rt $RM
}

nuke README Kbuild Makefile defconfig klibc.spec.in *.sh
nuke contrib klcc

# These files are either not needed or provided from the
# kernel tree
nuke scripts/Kbuild.include scripts/Kbuild.install
nuke scripts/Makefile.*
nuke scripts/basic