Add script to update aufs patches

svn path=/dists/trunk/linux-2.6/; revision=17014
This commit is contained in:
Ben Hutchings 2011-03-07 00:15:00 +00:00
parent d512f3dbd1
commit b8645366fc
2 changed files with 19 additions and 2 deletions

17
debian/patches/features/all/aufs2/gen-patch vendored Executable file
View File

@ -0,0 +1,17 @@
#!/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

View File

@ -6,11 +6,11 @@
+ features/all/sound-pci-cs46xx-request_firmware.patch
# patches from aufs2 repository, with s/EXPORT_SYMBOL/&_GPL/
# Patches and source files from aufs2 repository, imported with
# debian/patches/features/all/aufs2/gen-patch.
+ features/all/aufs2/aufs2-base.patch
+ features/all/aufs2/aufs2-standalone.patch
+ features/all/aufs2/aufs2-kbuild.patch
# content of fs/ and include/linux/aufs_types.h from aufs2 repository
+ features/all/aufs2/aufs2-add.patch
# mark as staging/crap
+ features/all/aufs2/mark-as-staging.patch