3 if [ "$#" -ne 1 ]; then
4 echo "Usage: $0 <aufs2-standalone directory>" 1>&2
9 # Get the current tip name
15 # Update aufs to the latest.
17 cp -rp "$aufs/fs/aufs" aufs
18 #cp -rp "$aufs/include" aufs
19 cp -rp "$aufs/include/linux"/*.h include/linux
20 git checkout -f HEAD -- aufs/BOM
22 # Reinsert the include update.
23 #sed -i -e '1iEXTRA_CFLAGS += -I$(src)/include' aufs/Makefile
25 # Find the latest commit.
26 read x nsha1 <"$aufs/ChangeLog"
28 # Insert the new commit ID and commit the result.
29 sed -i -e "s/^COMMIT: .*/COMMIT: $nsha1/" aufs/BOM
30 git add aufs include/linux
32 echo "UBUNTU: ubuntu: AUFS -- update to $nsha1"
34 awk <"$aufs/ChangeLog" '
35 /^commit '"$osha1"'/ { exit }
38 } | git commit -s -F -