Skip to content

Commit abf70fb

Browse files
committed
make{crx,xpi}.sh: There's no need to use $PWD
1 parent 7b9dcc2 commit abf70fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

makecrx.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# releases signed by EFF :/. We should find a more elegant arrangement.
2121

2222
cd $(dirname $0)
23-
RULESETS_JSON="$PWD/pkg/rulesets.json"
23+
RULESETS_JSON=pkg/rulesets.json
2424

2525
if [ -n "$1" ]; then
2626
BRANCH=`git branch | head -n 1 | cut -d \ -f 2-`
@@ -39,7 +39,7 @@ echo "Building chrome version" $VERSION
3939
[ -e pkg/crx ] && rm -rf pkg/crx
4040

4141
# Clean up obsolete ruleset databases, just in case they still exist.
42-
rm -f "$PWD/src/chrome/content/rules/default.rulesets" "$PWD/src/defaults/rulesets.sqlite"
42+
rm -f src/chrome/content/rules/default.rulesets src/defaults/rulesets.sqlite
4343

4444
# Only generate the ruleset database if any rulesets have changed. Tried
4545
# implementing this with make, but make is very slow with 15k+ input files.

makexpi.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ APP_NAME=https-everywhere
1616
# ./makexpi.sh 0.2.3.development.2
1717

1818
cd "`dirname $0`"
19-
RULESETS_JSON="$PWD/pkg/rulesets.json"
19+
RULESETS_JSON=pkg/rulesets.json
2020
ANDROID_APP_ID=org.mozilla.firefox
2121
VERSION=`echo $1 | cut -d "-" -f 2`
2222

@@ -55,7 +55,7 @@ if [ -n "$1" ] && [ "$2" != "--no-recurse" ] ; then
5555
fi
5656

5757
# Clean up obsolete ruleset databases, just in case they still exist.
58-
rm -f "$PWD/src/chrome/content/rules/default.rulesets" "$PWD/src/defaults/rulesets.sqlite"
58+
rm -f src/chrome/content/rules/default.rulesets src/defaults/rulesets.sqlite
5959

6060
# Only generate the ruleset database if any rulesets have changed. Tried
6161
# implementing this with make, but make is very slow with 15k+ input files.

0 commit comments

Comments
 (0)