summaryrefslogtreecommitdiffstats
path: root/third_party/instrumented_libraries/scripts
diff options
context:
space:
mode:
authorearthdok <earthdok@chromium.org>2015-03-25 06:30:42 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-25 13:31:04 +0000
commit3b966a9ed8b4af7fb9dd54611037ec79e66aa3ec (patch)
tree9c28124438047f1d3582325406d5a68501ea71d6 /third_party/instrumented_libraries/scripts
parentb251b58b4c97a520b29269c84895a5423736346c (diff)
downloadchromium_src-3b966a9ed8b4af7fb9dd54611037ec79e66aa3ec.zip
chromium_src-3b966a9ed8b4af7fb9dd54611037ec79e66aa3ec.tar.gz
chromium_src-3b966a9ed8b4af7fb9dd54611037ec79e66aa3ec.tar.bz2
Address review comments for r322149 (package script for instrumented libs).
I accidentally landed the wrong patchset. :( BUG=462636 TBR=glider@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/1004683003 Cr-Commit-Position: refs/heads/master@{#322150}
Diffstat (limited to 'third_party/instrumented_libraries/scripts')
-rwxr-xr-xthird_party/instrumented_libraries/scripts/build_and_package.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/third_party/instrumented_libraries/scripts/build_and_package.sh b/third_party/instrumented_libraries/scripts/build_and_package.sh
index 30b20da..0de0c91 100755
--- a/third_party/instrumented_libraries/scripts/build_and_package.sh
+++ b/third_party/instrumented_libraries/scripts/build_and_package.sh
@@ -30,33 +30,37 @@ function build_libraries {
esac
local archive_name=${build_type}-${ubuntu_release}
- local out_dir=out_${archive_name}
+ local out_dir=out-${archive_name}
echo "Building instrumented libraries in ${out_dir}..."
rm -rf $out_dir
mkdir $out_dir
- GYP_DEFINES="${gyp_defines} use_instrumented_libraries=1 instrumented_libraries_jobs=8" \
+ GYP_DEFINES="${gyp_defines} \
+ use_instrumented_libraries=1 instrumented_libraries_jobs=8" \
GYP_GENERATOR_FLAGS="output_dir=${out_dir}" \
gclient runhooks
- ninja -C ${out_dir}/Release instrumented_libraries
+ ninja -j4 -C ${out_dir}/Release instrumented_libraries
echo "Creating archive ${archive_name}.tgz..."
files=$(ls -1 ${out_dir}/Release/instrumented_libraries)
- tar zcf ${archive_name}.tgz -C ${out_dir}/Release/instrumented_libraries --exclude="?san/*.txt" ${files}
+ tar zcf ${archive_name}.tgz -C ${out_dir}/Release/instrumented_libraries \
+ --exclude="?san/*.txt" ${files}
echo To upload, run:
- echo upload_to_google_storage.py -b chromium-instrumented-libraries ${archive_name}.tgz
+ echo upload_to_google_storage.py -b \
+ chromium-instrumented-libraries ${archive_name}.tgz
echo You should then commit the resulting .sha1 file.
}
if ! [[ "${supported_releases}" =~ ${ubuntu_release} ]]
then
echo "Unsupported Ubuntu release: ${ubuntu_release}"
+ echo "Supported releases: ${supported_releases}"
exit 1
fi