aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cleanup.sh
blob: 6255cb255d647f316380073163d0a6b1d30b86ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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