Skip to content

Commit 670c2f6

Browse files
committed
manual: remove some spurious ".tar.gz" suffixes from directory names
1 parent 299b6bb commit 670c2f6

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

doc/z-chap1.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,24 +57,24 @@
5757
</Item>
5858

5959
<Item>
60-
download the package archive <F>&ARCHIVENAME;.tar.gz</F> from
61-
<URL Text="the Digraphs package webpage">https://digraphs.github.io/Digraphs/</URL>.
60+
download the package archive <F>&ARCHIVENAME;</F> from
61+
<URL Text="the Digraphs package webpage">https://digraphs.github.io/Digraphs</URL>.
6262
</Item>
6363

6464
<Item>
6565
unzip and untar the file, this should create a directory called
66-
<F>&ARCHIVENAME;</F>.
66+
<F>&ARCHIVE_BASENAME;</F>.
6767
</Item>
6868

6969
<Item>
7070
locate the <F>pkg</F> directory of your &GAP; directory, which contains
7171
the directories <F>lib</F>, <F>doc</F> and so on. Move the directory
72-
<F>&ARCHIVENAME;</F> into the <F>pkg</F> directory.
72+
<F>&ARCHIVE_BASENAME;</F> into the <F>pkg</F> directory.
7373
</Item>
7474

7575
<Item>
7676
it is necessary to compile the &Digraphs; package.
77-
Inside the <F>pkg/&ARCHIVENAME;</F> directory, type
77+
Inside the <F>pkg/&ARCHIVE_BASENAME;</F> directory, type
7878
<Listing>
7979
<![CDATA[./configure
8080
make]]></Listing>
@@ -177,7 +177,7 @@ flags are provided.
177177

178178
It is not possible to use the &Digraphs; package without compiling it.<P/>
179179

180-
To compile the kernel component inside the <F>pkg/&ARCHIVENAME;</F>
180+
To compile the kernel component inside the <F>pkg/&ARCHIVE_BASENAME;</F>
181181
directory, type
182182
<Listing>
183183
<![CDATA[

makedoc.g

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@ for Pkg in Concatenation(PkgInfo.Dependencies.NeededOtherPackages,
5252
XMLEntities.(entity_name) := RemovePrefixVersion(Pkg[2]);
5353
od;
5454

55-
ARCHIVENAME := SplitString(PkgInfo.ArchiveURL, "/");
56-
ARCHIVENAME := Concatenation(ARCHIVENAME[Length(ARCHIVENAME)],
57-
PkgInfo.ArchiveFormats);
55+
# Can change the following line to use Last() once we drop GAP 4.10 support
56+
ARCHIVE_BASENAME := SplitString(PkgInfo.ArchiveURL, "/");
57+
ARCHIVE_BASENAME := ARCHIVE_BASENAME[Length(ARCHIVE_BASENAME)];
58+
XMLEntities.ARCHIVE_BASENAME := ARCHIVE_BASENAME;
59+
60+
ARCHIVENAME := Concatenation(ARCHIVE_BASENAME, PkgInfo.ArchiveFormats);
5861
XMLEntities.ARCHIVENAME := ARCHIVENAME;
5962

6063
XMLEntities.DIGRAPHS := PackageEntity("Digraphs");

0 commit comments

Comments
 (0)