move hg.nginx.org to github.com & remove mercurial dependency.

pull/1027/head
qingfeng 3 months ago committed by GitHub
parent 54c70cc1de
commit ba692773d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -973,15 +973,20 @@ nginx_xml2pod=$bundle_dir/$resty_cli/bin/nginx-xml2pod
curdir=$PWD curdir=$PWD
cd $root/work/ || exit 1 cd $root/work/ || exit 1
if [ -d nginx.org ]; then if [ -d nginx.org ]; then
cd nginx.org/ || exit 1 if [ -f nginx.org/.git/config ];then
hg pull || exit 1 cd nginx.org/ || exit 1
hg update --clean || exit 1 git pull || exit 1
cd .. git checkout -f || exit 1
cd ..
else
rm -rf nginx.org || exit 1
git clone https://github.com/nginx/nginx.org || exit 1
fi
else else
hg clone http://hg.nginx.org/nginx.org || exit 1 git clone https://github.com/nginx/nginx.org || exit 1
fi fi
cd nginx.org/ || exit 1 cd nginx.org/ || exit 1
hg purge --config extensions.purge= || exit 1 git clean -f || exit 1
find xml/en/docs -name 'ngx_http_api_module.xml' -delete find xml/en/docs -name 'ngx_http_api_module.xml' -delete
rm xml/en/docs/njs/* rm xml/en/docs/njs/*
$nginx_xml2pod xml/en/docs || exit 1 $nginx_xml2pod xml/en/docs || exit 1

Loading…
Cancel
Save