This repository was archived by the owner on Apr 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +28
-3
lines changed Expand file tree Collapse file tree 4 files changed +28
-3
lines changed Original file line number Diff line number Diff line change 1
1
In a release this file would contain the URL to download the pre-compiled PSOL
2
2
binary, but on development branches (like this one) you have to build PSOL from
3
3
source yourself. See:
4
- https://github.com/pagespeed/ngx_pagespeed/wiki/Building-PSOL-From-Source
4
+ https://github.com/pagespeed/ngx_pagespeed/wiki/Building-PSOL-From-Source
Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ if [ "$mod_pagespeed_dir" = "unset" ] ; then
26
26
if [ ! -e "$mod_pagespeed_dir" ] ; then
27
27
echo "ngx_pagespeed: pagespeed optimization library not found:"
28
28
29
- psol_binary_url="$(cat $ngx_addon_dir/PSOL_BINARY_URL)"
29
+ psol_binary_url="$($ngx_addon_dir/scripts/format_binary_url.sh \
30
+ $ngx_addon_dir/PSOL_BINARY_URL)"
30
31
if [[ "$psol_binary_url" != https://* ]]; then
31
32
echo "
32
33
This is a development branch of ngx_pagespeed, which means there is no
Original file line number Diff line number Diff line change @@ -614,7 +614,7 @@ Not deleting $directory; name is suspiciously short. Something is wrong."
614
614
elif [ -e PSOL_BINARY_URL ]; then
615
615
# Releases after 1.11.33.4 there is a PSOL_BINARY_URL file that tells us
616
616
# where to look.
617
- psol_url=" $( cat PSOL_BINARY_URL) "
617
+ psol_url=" $( scripts/format_binary_url.sh PSOL_BINARY_URL) "
618
618
if [[ " $psol_url " != https://* ]]; then
619
619
fail " Got bad psol binary location information: $psol_url "
620
620
fi
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+ set -u
5
+
6
+ if [ $# -ne 1 ]; then
7
+ echo " Usage: $( basename $0 ) <url_file>" >&2
8
+ exit 1
9
+ fi
10
+
11
+ url_file=$1
12
+
13
+ if [ ! -e " $url_file " ]; then
14
+ echo " Url file '$url_file ' missing!" >&2
15
+ fi
16
+
17
+ # The size names must match install/build_psol.sh in mod_pagespeed
18
+ if [ " $( uname -m) " = x86_64 ]; then
19
+ bit_size_name=x64
20
+ else
21
+ bit_size_name=ia32
22
+ fi
23
+
24
+ sed -e ' s/$BIT_SIZE_NAME\b/' $bit_size_name ' /g' $url_file
You can’t perform that action at this time.
0 commit comments