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

Side by Side Diff: third_party/jinja2/get_jinja2.sh

Issue 2316103002: binding: Updates Jinja2 from 2.7.1 to 2.8. (Closed)
Patch Set: Created 4 years, 3 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 | « third_party/jinja2/filters.py ('k') | third_party/jinja2/lexer.py » ('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/bash 1 #!/bin/bash
2 # Download and extract Jinja2 2 # Download and extract Jinja2
3 # Homepage: 3 # Homepage:
4 # http://jinja.pocoo.org/ 4 # http://jinja.pocoo.org/
5 # Installation instructions: 5 # Installation instructions:
6 # http://jinja.pocoo.org/docs/intro/#from-the-tarball-release 6 # http://jinja.pocoo.org/docs/intro/#from-the-tarball-release
7 # Download page: 7 # Download page:
8 # https://pypi.python.org/pypi/Jinja2 8 # https://pypi.python.org/pypi/Jinja2
9 PACKAGE='Jinja2' 9 PACKAGE='Jinja2'
10 VERSION='2.7.1' 10 VERSION='2.8'
11 SRC_URL='https://pypi.python.org/packages/f2/2f/0b98b06a345a761bec91a079ccae392d 282690c2d8272e708f4d10829e22/Jinja2-2.8.tar.gz'
11 PACKAGE_DIR='jinja2' 12 PACKAGE_DIR='jinja2'
12 13
13 CHROMIUM_FILES="README.chromium OWNERS get_jinja2.sh" 14 CHROMIUM_FILES="README.chromium OWNERS get_jinja2.sh"
14 EXTRA_FILES='LICENSE AUTHORS' 15 EXTRA_FILES='LICENSE AUTHORS'
15 REMOVE_FILES='testsuite' 16 REMOVE_FILES='testsuite'
16 17
17 SRC_URL='https://pypi.python.org/packages/source/'
18 SRC_URL+="${PACKAGE:0:1}/$PACKAGE/$PACKAGE-$VERSION.tar.gz"
19 FILENAME="$(basename $SRC_URL)" 18 FILENAME="$(basename $SRC_URL)"
20 MD5_FILENAME="$FILENAME.md5" 19 MD5_FILENAME="$FILENAME.md5"
21 SHA512_FILENAME="$FILENAME.sha512" 20 SHA512_FILENAME="$FILENAME.sha512"
22 CHROMIUM_FILES+=" $MD5_FILENAME $SHA512_FILENAME" 21 CHROMIUM_FILES+=" $MD5_FILENAME $SHA512_FILENAME"
23 22
24 BUILD_DIR="$PACKAGE-$VERSION" 23 BUILD_DIR="$PACKAGE-$VERSION"
25 THIRD_PARTY="$(dirname $(realpath $(dirname "${BASH_SOURCE[0]}")))" 24 THIRD_PARTY="$(dirname $(realpath $(dirname "${BASH_SOURCE[0]}")))"
26 INSTALL_DIR="$THIRD_PARTY/$PACKAGE_DIR" 25 INSTALL_DIR="$THIRD_PARTY/$PACKAGE_DIR"
27 OUT_DIR="$INSTALL_DIR/$BUILD_DIR/$PACKAGE_DIR" 26 OUT_DIR="$INSTALL_DIR/$BUILD_DIR/$PACKAGE_DIR"
28 OLD_DIR="$THIRD_PARTY/$PACKAGE_DIR.old" 27 OLD_DIR="$THIRD_PARTY/$PACKAGE_DIR.old"
29 28
30 function check_hashes { 29 function check_hashes {
31 # Hashes generated via: 30 # Hashes generated via:
32 # FILENAME=Jinja2-2.7.1.tar.gz 31 # FILENAME=Jinja2-2.8.tar.gz
33 # md5sum "$FILENAME" > "$FILENAME.md5" 32 # md5sum "$FILENAME" > "$FILENAME.md5"
34 # sha512sum "$FILENAME" > "$FILENAME.sha512" 33 # sha512sum "$FILENAME" > "$FILENAME.sha512"
35 # unset FILENAME 34 # unset FILENAME
36 35
37 # MD5 36 # MD5
38 if ! [ -f "$MD5_FILENAME" ] 37 if ! [ -f "$MD5_FILENAME" ]
39 then 38 then
40 echo "MD5 hash file $MD5_FILENAME not found, could not verify archive" 39 echo "MD5 hash file $MD5_FILENAME not found, could not verify archive"
41 exit 1 40 exit 1
42 fi 41 fi
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 do 113 do
115 rm -fr "$FILE" 114 rm -fr "$FILE"
116 done 115 done
117 116
118 # Replace with new directory 117 # Replace with new directory
119 cd .. 118 cd ..
120 mv "$INSTALL_DIR" "$OLD_DIR" 119 mv "$INSTALL_DIR" "$OLD_DIR"
121 mv "$PACKAGE_DIR" "$INSTALL_DIR" 120 mv "$PACKAGE_DIR" "$INSTALL_DIR"
122 cd "$INSTALL_DIR" 121 cd "$INSTALL_DIR"
123 rm -fr "$OLD_DIR" 122 rm -fr "$OLD_DIR"
OLDNEW
« no previous file with comments | « third_party/jinja2/filters.py ('k') | third_party/jinja2/lexer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698