Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UBUNTU: ubuntu: AUFS -- add BOM and automated update script
Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
- Loading branch information
1 parent
11923d6
commit 1c35112
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
if [ "$#" -ne 1 ]; then | ||
echo "Usage: $0 <aufs2-standalone directory>" 1>&2 | ||
exit 1 | ||
fi | ||
aufs="$1" | ||
|
||
# Get the current tip name | ||
{ | ||
read x url | ||
read x osha1 | ||
} <aufs/BOM | ||
|
||
# Update aufs to the latest. | ||
git rm -rf aufs | ||
cp -rp "$aufs/fs/aufs" aufs | ||
cp -rp "$aufs/include" aufs | ||
git checkout -f HEAD -- aufs/BOM | ||
|
||
# Reinsert the include update. | ||
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 | ||
{ | ||
echo "UBUNTU: ubuntu: AUFS -- update to $nsha1" | ||
echo "" | ||
awk <"$aufs/ChangeLog" ' | ||
/^commit '"$osha1"'/ { exit } | ||
{ print " " $0 } | ||
' | ||
} | git commit -s -F - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
URL: http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git | ||
COMMIT: a9be01e5e9688018ebe9ef46ec5414bb356bc556 |