09 April 2010

script to clean linux 2.6.33 for x86

#!/bin/sh

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

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

echo " Documentation"
rm -rf Documentation

echo ""
echo "creating Documentation Kbuild"
mkdir -p Documentation/DocBook
touch Documentation/Kbuild Documentation/DocBook/Kbuild

Reference:
script-remove-unwanted-folders-from.html

No comments:

Post a Comment