Skip to content

Commit

Permalink
Update .release
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfwilson committed Dec 21, 2021
1 parent 26691ef commit 512f658
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
27 changes: 24 additions & 3 deletions .release
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
#!/bin/sh
# This file is executed by the `release` script from
#!/bin/bash
# This script is intended to be run by the release-gap-package script which is
# part of the the ReleaseTools for GAP:
#
# https://github.com/gap-system/ReleaseTools
rm -rf .codecov.yml

set -e

# ensure we are in the same directory as this script
cd "$(dirname "${BASH_SOURCE[0]}")"

notice_it() {
printf '\033[93m%s\033[0m\n' "$*"
}

notice_it "Fixing the links in the documentation"
for f in ./*/*.htm* ; do
sed \
-e 's;href="../../../pkg/[dD]igraphs[^\/]*/doc/;href="https://digraphs.github.io/Digraphs/doc/;g' \
-e 's;href="../../../pkg/[iI]mages[^\/]*/doc/;href="https://gap-packages.github.io/images/doc/;g' \
-e 's;href="../../../pkg/[gG]raph[bB]acktracking[^\/]*/doc/;href="https://peal.github.io/GraphBacktracking/doc/;g' \
-e 's;href="../../../pkg/[vV]ole[^\/]*/doc/;href="https://peal.github.io/vole/doc/;g' \
"$f" > "$f.bak"
mv "$f.bak" "$f"
done
4 changes: 2 additions & 2 deletions PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ SourceRepository := rec(
),
IssueTrackerURL := Concatenation( ~.SourceRepository.URL, "/issues" ),
PackageWWWHome := "https://peal.github.io/BacktrackKit",
PackageInfoURL := Concatenation( ~.PackageWWWHome, "PackageInfo.g" ),
README_URL := Concatenation( ~.PackageWWWHome, "README.md" ),
PackageInfoURL := Concatenation( ~.PackageWWWHome, "/PackageInfo.g" ),
README_URL := Concatenation( ~.PackageWWWHome, "/README.md" ),
ArchiveURL := Concatenation( ~.SourceRepository.URL,
"/releases/download/v", ~.Version,
"/", ~.PackageName, "-", ~.Version ),
Expand Down

0 comments on commit 512f658

Please sign in to comment.