diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-01 13:05:24 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-01 13:05:24 +0200 |
commit | ff2f287f82630ab3887d7d5c1e64e5b888ea0beb (patch) | |
tree | 4e96cb32aa2320a327024942d247c6b56ef8c199 /toolkit/crashreporter/update-breakpad.sh | |
parent | bfc97728065cbbc7f6bbc281b654a2d1e079b48d (diff) | |
download | UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.tar UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.tar.gz UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.tar.lz UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.tar.xz UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.zip |
Remove crashreporter toolkit files.
Resolves #20
Diffstat (limited to 'toolkit/crashreporter/update-breakpad.sh')
-rwxr-xr-x | toolkit/crashreporter/update-breakpad.sh | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/toolkit/crashreporter/update-breakpad.sh b/toolkit/crashreporter/update-breakpad.sh deleted file mode 100755 index 3b3079876..000000000 --- a/toolkit/crashreporter/update-breakpad.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -set -v -e -x - -# Usage: update-breakpad.sh <path to breakpad git clone> [rev, defaults to HEAD] - -if [ $# -lt 1 ]; then - echo "Usage: update-breakpad.sh /path/to/breakpad/src [rev]" - exit 1 -fi - -crashreporter_dir=`realpath $(dirname $0)` -repo=${crashreporter_dir}/../.. -rm -rf ${crashreporter_dir}/google-breakpad - -breakpad_repo=$1 -rev=${2-HEAD} -(cd $breakpad_repo; git archive --prefix=toolkit/crashreporter/google-breakpad/ $rev) | (cd $repo; tar xf -) -# Breakpad uses gclient for externals, so manually export what we need. -lss_rev=`python -c "import sys; execfile(sys.argv[1]); print deps['src/src/third_party/lss'].split('@')[1]" ${crashreporter_dir}/google-breakpad/DEPS` -(cd $breakpad_repo/src/third_party/lss; git archive --prefix=toolkit/crashreporter/google-breakpad/src/third_party/lss/ $lss_rev) | (cd $repo; tar xf -) - -# remove some extraneous bits -rm -rf \ - ${crashreporter_dir}/google-breakpad/docs/ \ - ${crashreporter_dir}/google-breakpad/scripts/ \ - ${crashreporter_dir}/google-breakpad/src/third_party/protobuf \ - ${crashreporter_dir}/google-breakpad/src/testing/ \ - ${crashreporter_dir}/google-breakpad/src/tools/gyp/ \ - ${crashreporter_dir}/google-breakpad/src/processor/testdata/ \ - ${crashreporter_dir}/google-breakpad/src/tools/windows/dump_syms/testdata/ \ - ${crashreporter_dir}/.travis.yml - -# restore our Makefile.ins -hg -R ${repo} st -n | grep "Makefile\.in$" | xargs hg revert --no-backup -# and moz.build files -hg -R ${repo} st -n | grep "moz\.build$" | xargs hg revert --no-backup -# and some other makefiles -hg -R ${repo} st -n | grep "objs\.mozbuild$" | xargs hg revert --no-backup - -# Record git rev -(cd $breakpad_repo; git rev-parse $rev) > ${crashreporter_dir}/google-breakpad/GIT-INFO - -# Apply any local patches -shopt -s nullglob -for p in ${crashreporter_dir}/breakpad-patches/*.patch; do - if grep -q -e "--git" $p; then - patch_opts="-p1" - else - patch_opts="-p0" - fi - echo "Applying $p" - if ! filterdiff -x '*/Makefile*' $p | \ - patch -d ${crashreporter_dir}/google-breakpad ${patch_opts}; then - echo "Failed to apply $p" - exit 1 - fi -done -# remove any .orig files that snuck in -find ${crashreporter_dir}/google-breakpad -name "*.orig" -exec rm '{}' \; - -hg addremove ${crashreporter_dir}/google-breakpad/ |