зеркало из https://github.com/mozilla/normandy.git
Add backport script
This commit is contained in:
Родитель
123fa29d43
Коммит
a87c87bc5a
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -eu
|
||||
|
||||
if [[ $# -lt 1 ]]; then
|
||||
echo "usage: $(basename $0) MOZ-CENTRAL" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
baseDir="$(dirname "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )")"
|
||||
mozCentral="$1"
|
||||
src="${mozCentral}/browser/extensions/shield-recipe-client"
|
||||
dest="${baseDir}/"
|
||||
|
||||
while read -r line || [[ -n "${line}" ]]; do
|
||||
mkdir -p "$(dirname "${dest}/${line}")"
|
||||
cp -r "${src}/${line}" "$(dirname "${dest}/${line}")"
|
||||
done < "${baseDir}/build-includes.txt"
|
Загрузка…
Ссылка в новой задаче