Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: chrome/tools/build/win/make_zip.sh

Issue 174372: Add license information to our shell scripts. (Closed)
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/tools/build/win/make_chromebot_zip.sh ('k') | chrome/tools/extract_actions.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
3 # A simple shell script for creating a chrome zip from an output directory. 7 # A simple shell script for creating a chrome zip from an output directory.
4 # Pass the path to the output directory you wish to package. 8 # Pass the path to the output directory you wish to package.
5 9
6 if [ $# = 0 ]; then 10 if [ $# = 0 ]; then
7 echo "usage: make_zip.sh path/to/release/dir [output-name]" 11 echo "usage: make_zip.sh path/to/release/dir [output-name]"
8 exit 1 12 exit 1
9 fi 13 fi
10 14
11 tools_dir=$(dirname "$0") 15 tools_dir=$(dirname "$0")
12 release_dir="$1" 16 release_dir="$1"
(...skipping 15 matching lines...) Expand all
28 # Change IFS setting so we only split words with '\n' 32 # Change IFS setting so we only split words with '\n'
29 IFS_Default=$IFS 33 IFS_Default=$IFS
30 IFS=$'\n' 34 IFS=$'\n'
31 for f in ${files[@]}; do 35 for f in ${files[@]}; do
32 cp -r --parents "$f" "$output_abs" 36 cp -r --parents "$f" "$output_abs"
33 done 37 done
34 IFS=$IFS_Default 38 IFS=$IFS_Default
35 popd 39 popd
36 40
37 zip -r $output.zip $output 41 zip -r $output.zip $output
OLDNEW
« no previous file with comments | « chrome/tools/build/win/make_chromebot_zip.sh ('k') | chrome/tools/extract_actions.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698