mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
fixes bug 306077 "do not package channel-prefs.js in MAR complete and partial patches" r=chase
This commit is contained in:
parent
ead9a8939e
commit
42b144f79e
@ -57,6 +57,13 @@ make_add_instruction() {
|
||||
fi
|
||||
}
|
||||
|
||||
# List all files in the current directory, stripping leading "./"
|
||||
# Skip the channel-prefs.js file as it should not be included in any
|
||||
# generated MAR files (see bug 306077).
|
||||
list_files() {
|
||||
find . -type f ! -name "channel-prefs.js" | sed 's/\.\/\(.*\)/"\1"/'
|
||||
}
|
||||
|
||||
archive="$1"
|
||||
targetdir="$2"
|
||||
workdir="$targetdir.work"
|
||||
@ -64,7 +71,7 @@ manifest="$workdir/update.manifest"
|
||||
targetfiles="update.manifest"
|
||||
|
||||
# Generate a list of all files in the target directory.
|
||||
list=$(cd "$targetdir" && find . -type f | sed 's/\.\/\(.*\)/"\1"/')
|
||||
list=$(cd "$targetdir" && list_files)
|
||||
eval "files=($list)"
|
||||
|
||||
mkdir -p "$workdir"
|
||||
|
@ -65,6 +65,13 @@ make_patch_instruction() {
|
||||
fi
|
||||
}
|
||||
|
||||
# List all files in the current directory, stripping leading "./"
|
||||
# Skip the channel-prefs.js file as it should not be included in any
|
||||
# generated MAR files (see bug 306077).
|
||||
list_files() {
|
||||
find . -type f ! -name "channel-prefs.js" | sed 's/\.\/\(.*\)/"\1"/'
|
||||
}
|
||||
|
||||
archive="$1"
|
||||
olddir="$2"
|
||||
newdir="$3"
|
||||
@ -73,9 +80,9 @@ manifest="$workdir/update.manifest"
|
||||
archivefiles="update.manifest"
|
||||
|
||||
# Generate a list of all files in the target directory.
|
||||
list=$(cd "$olddir" && find . -type f | sed 's/\.\/\(.*\)/"\1"/')
|
||||
list=$(cd "$olddir" && list_files)
|
||||
eval "oldfiles=($list)"
|
||||
list=$(cd "$newdir" && find . -type f | sed 's/\.\/\(.*\)/"\1"/')
|
||||
list=$(cd "$newdir" && list_files)
|
||||
eval "newfiles=($list)"
|
||||
|
||||
mkdir -p "$workdir"
|
||||
|
Loading…
Reference in New Issue
Block a user