From ddcd1bae8bcc53bfcc09c1f45d8e8064ff7f4af5 Mon Sep 17 00:00:00 2001 From: jingjingxyk Date: Tue, 21 Jan 2025 16:02:37 +0800 Subject: [PATCH] update install-re2c.sh --- sapi/scripts/cygwin/install-re2c.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sapi/scripts/cygwin/install-re2c.sh b/sapi/scripts/cygwin/install-re2c.sh index ecf7055d1c..a6881d7c3a 100644 --- a/sapi/scripts/cygwin/install-re2c.sh +++ b/sapi/scripts/cygwin/install-re2c.sh @@ -10,22 +10,20 @@ __PROJECT__=$( pwd ) cd ${__PROJECT__} -ROOT=${__PROJECT__} - RE2C_VERSION=3.0 -wget https://github.com/swoole/swoole-cli/releases/download/v5.0.1/re2c.exe +curl -fSLo re2c.exe https://github.com/swoole/swoole-cli/releases/download/v5.0.1/re2c.exe mv ./re2c.exe /usr/bin/re2c chmod +x /usr/bin/re2c re2c -v build_re2c() { cd /tmp - wget https://github.com/skvadrik/re2c/releases/download/3.0/re2c-3.0.tar.xz + curl -fSLo re2c-${RE2C_VERSION}.tar.xz https://github.com/skvadrik/re2c/releases/download/3.0/re2c-3.0.tar.xz tar xvf re2c-${RE2C_VERSION}.tar.xz cd re2c-${RE2C_VERSION} autoreconf -i -W all ./configure --prefix=/usr && make -j $(nproc) && make install - cd $ROOT + cd ${__PROJECT__} }