linux/debian/patches/features/all/aufs2/gen-patch

18 lines
458 B
Plaintext
Raw Normal View History

#!/bin/bash -e
aufs_dir="$1"
for patch in aufs2-{base,kbuild,standalone}.patch; do
sed 's/^+.*EXPORT_SYMBOL\b/&_GPL/' < "$aufs_dir"/"$patch" \
> debian/patches/features/all/aufs2/"$patch"
done
{
cd "$aufs_dir" && \
{ find fs -type f; echo include/linux/aufs_type.h; } | \
LC_ALL=C sort | \
while read file; do
diff -uN a/"$file" "$file" | filterdiff --addnewprefix=b/
done
} > debian/patches/features/all/aufs2/aufs2-add.patch