Skip to content

Commit

Permalink
patch perl-5.30 also
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalao authored and Jose Palao committed Aug 29, 2021
1 parent 78f7e5c commit 69ad4ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ios/build.sh
Expand Up @@ -169,6 +169,7 @@ build_perl() {
# patch perl and os version
os_version=$(uname -r)
perl -0777 -i.bak.1 -pe "s|5\.30\.2|$PERL_VERSION|g" "config.sh"
perl -0777 -i.bak.2 -pe "s|5\.30|5\.$PERL_MAJOR_VERSION|g" "config.sh"
perl -0777 -i.bak.2 -pe "s|15\.6\.0|$os_version|g" "config.sh"

# patch Makefile.SH #
Expand Down Expand Up @@ -208,7 +209,8 @@ build_perl() {

# patch prefix
perl -i.bak.0 -pe "s|/opt/local|$PREFIX|g" "config.h"

perl -0777 -i.bak.1 -pe "s|5\.30\.2|$PERL_VERSION|g" "config.h"
perl -0777 -i.bak.2 -pe "s|5\.30|5\.$PERL_MAJOR_VERSION|g" "config.h"

if [ $PLATFORM_TAG != "iphone" ] ; then
# patch fork
Expand Down

0 comments on commit 69ad4ea

Please sign in to comment.