-FILES="COPYING CREDITS Kbuild"
-FOLDERS="Documentation arch include fs init ipc kernel scripts"
-
-# Kernel script checks for some files and folders to run
-workaround () {
- for f in $FILES; do
- if [ ! -f $f ]; then touch $f; fi
- done
-
- for d in $FOLDERS; do
- if [ ! -d $d ]; then mkdir $d; fi
- done
-}
-
-fix_workaround () {
- for f in $FILES; do if [ -f $f ]; then rm -f $f; fi; done
- for d in $FOLDERS; do if [ -d $d ]; then rmdir $d; fi; done
-}
-
-# clean workaround on exit
-trap fix_workaround EXIT
-
-workaround