Commit 988819b1 authored by Noé Gaumont's avatar Noé Gaumont 🐙
Browse files

feat: add script to update forge url

parent f8b7f3ec4369
Pipeline #77532 passed with stage
in 2 minutes and 18 seconds
#!/usr/bin/env bash
set -x
sed -E 's@https?://www.cubicweb.org/project/cubicweb-(.*)@https://forge.extranet.logilab.fr/cubicweb/cubes/\1@g' -i setup.py || true
sed -E 's@https?://www.cubicweb.org/project/(.*)@https://forge.extranet.logilab.fr/cubicweb/cubes/\1@g' -i setup.py || true
[ ! -h __pkginfo__.py ] && sed -E 's@https?://www.cubicweb.org/project/cubicweb-(.*)@https://forge.extranet.logilab.fr/cubicweb/cubes/\1@g' -i __pkginfo__.py || true
[ ! -h __pkginfo__.py ] && sed -E 's@https?://www.cubicweb.org/project/(.*)@https://forge.extranet.logilab.fr/cubicweb/cubes/\1@g' -i __pkginfo__.py || true
sed -E 's@https?://www.cubicweb.org/project/cubicweb-(.*)@https://forge.extranet.logilab.fr/cubicweb/cubes/\1@g' -i */__pkginfo__.py || true
sed -E 's@https?://www.cubicweb.org/project/(.*)@https://forge.extranet.logilab.fr/cubicweb/cubes/\1@g' -i */__pkginfo__.py || true
# GITLAB_TOKEN=$(cat token) cube-doctor run-script \
# -s scripts/update-forge-url.sh
# -b update-forge-url-in-packaging \
# -c "chore: update forge url to forge.extranet.logilab.fr"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment