Skip to content

Commit bde023b

Browse files
author
Jacob Hoffman-Andrews
committed
Change #! lines to specify python2.7 (required for argparse module)
1 parent e2ae194 commit bde023b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

makecrx.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ VERSION=`python -c "import json ; print(json.loads(open('chromium/manifest.json'
3737
echo "Building chrome version" $VERSION
3838

3939
if [ -f utils/trivial-validate.py ]; then
40-
VALIDATE="python utils/trivial-validate.py --ignoredups google --ignoredups facebook"
40+
VALIDATE="./utils/trivial-validate.py --ignoredups google --ignoredups facebook"
4141
elif [ -x utils/trivial-validate ] ; then
4242
# This case probably never happens
4343
VALIDATE=./utils/trivial-validate
@@ -117,7 +117,7 @@ trap 'rm -f "$pub" "$sig" "$zip"' EXIT
117117

118118
# zip up the crx dir
119119
cwd=$(pwd -P)
120-
(cd "$dir" && python ../../utils/create_xpi.py -n "$cwd/$zip" -x "../../.build_exclusions" .)
120+
(cd "$dir" && ../../utils/create_xpi.py -n "$cwd/$zip" -x "../../.build_exclusions" .)
121121
echo >&2 "Unsigned package has shasum: `shasum "$cwd/$zip"`"
122122

123123
# signature

makexpi.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fi
5252

5353
if [ "$1" != "--fast" ] ; then
5454
if [ -f utils/trivial-validate.py ]; then
55-
VALIDATE="python utils/trivial-validate.py --ignoredups google --ignoredups facebook"
55+
VALIDATE="./utils/trivial-validate.py --ignoredups google --ignoredups facebook"
5656
elif [ -f trivial-validate.py ] ; then
5757
VALIDATE="python trivial-validate.py --ignoredups google --ignoredups facebook"
5858
elif [ -x utils/trivial-validate ] ; then
@@ -128,7 +128,7 @@ cd src
128128
rm -f "../$XPI_NAME"
129129
#zip -q -X -9r "../$XPI_NAME" . "-x@../.build_exclusions"
130130

131-
python ../utils/create_xpi.py -n "../$XPI_NAME" -x "../.build_exclusions" "."
131+
../utils/create_xpi.py -n "../$XPI_NAME" -x "../.build_exclusions" "."
132132

133133
ret="$?"
134134
if [ "$ret" != 0 ]; then

utils/create_xpi.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/python2.7
22

33
# Uses the Python zip implementation to create deterministic XPI's
44
# Author: Yan Zhu, yan@mit.edu

utils/trivial-validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/python2.7
22

33
import argparse
44
import sys, re, os

0 commit comments

Comments
 (0)