12 October 2009

script remove unwanted folders from linux kernel

----------------------script.sh----------------------
#!/bin/sh

ARCHDIRS="alpha blackfin h8300 m68knommu mn10300 s390 arm \
cris m32r microblaze parisc sh avr32 frv ia64 m68k mips \
powerpc sparc xtensa"

for DIR in $ARCHDIRS; do
echo "deleting $DIR"
rm -rf arch/$DIR
done

rm -rf Documentation

DOCDIRS=" / accounting auxdisplay connector DocBook \
filesystems ia64 networking pcmcia spi video4linux vm \
watchdog"

for DIR in $DOCDIRS; do
echo "creating Documentation/$DIR/Makefile"
mkdir -p Documentation/$DIR
touch Documentation/$DIR/Makefile
done
-----------------------------------------------------

No comments:

Post a Comment