diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2004-11-20 11:12:21 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2004-11-20 11:12:21 +0000 |
commit | 13ed482774a87185fb4753d84444741b1eb93780 (patch) | |
tree | e5f7d851ca6445bad3d6820a9202ae87bd7a7e2b /kernel/cleanup.sh | |
parent | 08ddb8e5e0af8c1326607f4d06c0dbc85733e483 (diff) | |
download | libfuse-13ed482774a87185fb4753d84444741b1eb93780.tar.gz |
fix
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 |