diff options
Diffstat (limited to 'kernel/cleanup.sh')
-rwxr-xr-x | kernel/cleanup.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/kernel/cleanup.sh b/kernel/cleanup.sh new file mode 100755 index 0000000..6255cb2 --- /dev/null +++ b/kernel/cleanup.sh @@ -0,0 +1,16 @@ +#! /bin/sh + +destdir=$1 + +if test ! -d "$destdir"; then + printf "Usage: %s destination_directory\n" $0 + exit 1 +fi +if test "$destdir" = "."; then + echo "Not overwriting contents of original directory" + exit 1 +fi + +for f in dev.c dir.c file.c inode.c util.c fuse_i.h; do + unifdef -DKERNEL_2_6 -DKERNEL_2_6_6_PLUS -DKERNEL_2_6_10_PLUS -DHAVE_KERNEL_XATTR -DFS_SAFE -DMAX_LFS_FILESIZE -DFUSE_MAINLINE -DBUG_ON -D__user -DMODULE_LICENSE $f > $destdir/$f +done |