UBUNTU: ubuntu: AUFS -- update aufs-update to track new locations of headers
authorAndy Whitcroft <apw@canonical.com>
Thu, 6 Jan 2011 16:12:34 +0000 (16:12 +0000)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 28 Mar 2011 13:52:46 +0000 (06:52 -0700)
Track the new location of the headers as per the commit below:

  commit de699ab60a2f8a55b9c8313a04c7863897fb88bd
  Author: Andy Whitcroft <apw@canonical.com>
  Date:   Fri Dec 3 11:12:17 2010 +0000

    UBUNTU: ubuntu: AUFS -- include the aufs_types.h file in linux-libc-headers

Signed-off-by: Andy Whitcroft <apw@canonical.com>

ubuntu/aufs-update

index 869e9d6..d1ac0f9 100644 (file)
@@ -15,18 +15,19 @@ aufs="$1"
 # Update aufs to the latest.
 git rm -rf aufs
 cp -rp "$aufs/fs/aufs" aufs
-cp -rp "$aufs/include" aufs
+#cp -rp "$aufs/include" aufs
+cp -rp "$aufs/include/linux"/*.h include/linux
 git checkout -f HEAD -- aufs/BOM
 
 # Reinsert the include update.
-sed -i -e '1iEXTRA_CFLAGS += -I$(src)/include' aufs/Makefile
+#sed -i -e '1iEXTRA_CFLAGS += -I$(src)/include' aufs/Makefile
 
 # Find the latest commit.
 read x nsha1 <"$aufs/ChangeLog"
 
 # Insert the new commit ID and commit the result.
 sed -i -e "s/^COMMIT: .*/COMMIT: $nsha1/" aufs/BOM
-git add aufs
+git add aufs include/linux
 {
        echo "UBUNTU: ubuntu: AUFS -- update to $nsha1"
        echo ""