Skip to content

Commit 512f658

Browse files
committed
Update .release
1 parent 26691ef commit 512f658

2 files changed

Lines changed: 26 additions & 5 deletions

File tree

.release

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
1-
#!/bin/sh
2-
# This file is executed by the `release` script from
1+
#!/bin/bash
2+
# This script is intended to be run by the release-gap-package script which is
3+
# part of the the ReleaseTools for GAP:
4+
#
35
# https://github.com/gap-system/ReleaseTools
4-
rm -rf .codecov.yml
6+
7+
set -e
8+
9+
# ensure we are in the same directory as this script
10+
cd "$(dirname "${BASH_SOURCE[0]}")"
11+
12+
notice_it() {
13+
printf '\033[93m%s\033[0m\n' "$*"
14+
}
15+
16+
notice_it "Fixing the links in the documentation"
17+
for f in ./*/*.htm* ; do
18+
sed \
19+
-e 's;href="../../../pkg/[dD]igraphs[^\/]*/doc/;href="https://digraphs.github.io/Digraphs/doc/;g' \
20+
-e 's;href="../../../pkg/[iI]mages[^\/]*/doc/;href="https://gap-packages.github.io/images/doc/;g' \
21+
-e 's;href="../../../pkg/[gG]raph[bB]acktracking[^\/]*/doc/;href="https://peal.github.io/GraphBacktracking/doc/;g' \
22+
-e 's;href="../../../pkg/[vV]ole[^\/]*/doc/;href="https://peal.github.io/vole/doc/;g' \
23+
"$f" > "$f.bak"
24+
mv "$f.bak" "$f"
25+
done

PackageInfo.g

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ SourceRepository := rec(
5454
),
5555
IssueTrackerURL := Concatenation( ~.SourceRepository.URL, "/issues" ),
5656
PackageWWWHome := "https://peal.github.io/BacktrackKit",
57-
PackageInfoURL := Concatenation( ~.PackageWWWHome, "PackageInfo.g" ),
58-
README_URL := Concatenation( ~.PackageWWWHome, "README.md" ),
57+
PackageInfoURL := Concatenation( ~.PackageWWWHome, "/PackageInfo.g" ),
58+
README_URL := Concatenation( ~.PackageWWWHome, "/README.md" ),
5959
ArchiveURL := Concatenation( ~.SourceRepository.URL,
6060
"/releases/download/v", ~.Version,
6161
"/", ~.PackageName, "-", ~.Version ),

0 commit comments

Comments
 (0)