Skip to content

Commit a50dd79

Browse files
committed
Rename release -> release-gap-package
Also add a symlink `release` to the new name for backwards compatibility. Resolves #60
1 parent b422692 commit a50dd79

File tree

3 files changed

+660
-658
lines changed

3 files changed

+660
-658
lines changed

README.md

+43-42
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pages for the package homepage.
2020

2121
## Requirements
2222

23-
The `release` script should run on any POSIX compatible system,
23+
The `release-gap-package` script should run on any POSIX compatible system,
2424
provided the following tools are available:
2525

2626
* [curl](https://curl.haxx.se/)
@@ -31,15 +31,15 @@ provided the following tools are available:
3131
specifies it in the `ArchiveFormats` field)
3232

3333
In addition, you also need a recent enough version of GAP (4.7.8 or later
34-
should do it). By default the `release` script assumes that there is a
34+
should do it). By default the `release-gap-package` script assumes that there is a
3535
`gap` executable in your PATH. If this is not the case, or if you want
36-
`release` to use another GAP executable, you can do so via the `GAP`
36+
`release-gap-package` to use another GAP executable, you can do so via the `GAP`
3737
environment variable.
3838

39-
For example, you could invoke `release` like this, assuming the
39+
For example, you could invoke `release-gap-package` like this, assuming the
4040
`ReleaseTools` directory is next to your package's directory:
4141

42-
GAP=/home/john_smith/gap/bin/gap.sh ../ReleaseTools/release
42+
GAP=/home/john_smith/gap/bin/gap.sh ../ReleaseTools/release-gap-package
4343

4444
Your package must also be hosted on GitHub.
4545

@@ -102,11 +102,11 @@ make a release.
102102
103103
1. Prepare your release, commit all changes and push them
104104
105-
2. Run `PATH/TO/ReleaseTools/release`
105+
2. Run `PATH/TO/ReleaseTools/release-gap-package`
106106
107107
3. If there was no error, you are done. Otherwise, address the error,
108108
commit and push the changes, then repeat step 2 (you may need to add
109-
the `--force` option, to convince `release` to re-create git tags
109+
the `--force` option, to convince `release-gap-package` to re-create git tags
110110
etc.)
111111
112112
@@ -118,8 +118,9 @@ repository.
118118
119119
In order to make a release, you can follow the steps below. Note that this
120120
assumes that `gap` is in your PATH, i.e. it can be invoked by just entering
121-
`gap`. Alternatively, before running the `release` tool you can set the `GAP`
122-
environment variable to contain the full path to your GAP executable
121+
`gap`. Alternatively, before running the `release-gap-package` tool you can
122+
set the `GAP` environment variable to contain the full path to your GAP
123+
executable.
123124
124125
1. Make sure we are on the right branch and have the latest version.
125126
@@ -154,10 +155,10 @@ environment variable to contain the full path to your GAP executable
154155
git commit --all -m "Version 1.2.3"
155156
```
156157
157-
7. Create the release using the `release` script included here:
158+
7. Create the release using the `release-gap-package` script included here:
158159
159160
```
160-
PATH/TO/ReleaseTools/release --no-push
161+
PATH/TO/ReleaseTools/release-gap-package --no-push
161162
```
162163
163164
If this does not work, please refer to the section discussing `release`.
@@ -169,17 +170,18 @@ environment variable to contain the full path to your GAP executable
169170
In particular, test the release archives created by the previous step. If
170171
you are unhappy with the outcome, or for some other reason decide that you
171172
need more changes, do these and go back and repeat previous steps as
172-
necessary (in step 8, you now need to pass `--force` to the `release` tool)
173+
necessary (in step 8, you now need to pass `--force` to the
174+
`release-gap-package` tool)
173175
174176
9. Update the website:
175177
176178
```
177179
cd gh-pages && git push
178180
```
179181
180-
Note that `release` will also do this for you if you omit the `--no-push`
181-
option; once you are familiar with this tool, and confident everything
182-
worked fine, you may want to always do it that way.
182+
Note that `release-gap-package` will also do this for you if you omit the
183+
`--no-push` option; once you are familiar with this tool, and confident
184+
everything worked fine, you may want to always do it that way.
183185
184186
185187
That's it. You should now be able to see the new version on
@@ -193,24 +195,24 @@ detect that you made a release, and pull it into the next
193195
GAP package bundle.
194196
195197
196-
## The `release` script
198+
## The `release-gap-package` script
197199
198-
The `release` script helps you create release archives of your GAP package in a clean
199-
and controlled way, and publish them on GitHub.
200+
The `release-gap-package` script helps you create release archives of your GAP
201+
package in a clean and controlled way, and publish them on GitHub.
200202
201203
Again, we assume you are working on version 1.2.3 or package `FOOBAR`.
202204
203-
### Invoking the `release` script
205+
### Invoking the `release-gap-package` script
204206
205-
You normally invoke `release` as follows from inside a clone of your
207+
You normally invoke `release-gap-package` as follows from inside a clone of your
206208
package repository:
207209
208-
PATH/TO/ReleaseTools/release
210+
PATH/TO/ReleaseTools/release-gap-package
209211
210212
This scans your `PackageInfo.g` for the package name and version, and uses
211213
that to guess the release tag, and continues from there (see the next section
212-
for more details). However, several options can be passed to the `release`
213-
tool to adjust this process.
214+
for more details). However, several options can be passed to the
215+
`release-gap-package` tool to adjust this process.
214216
215217
1. **Options which indicate actions:**
216218
@@ -224,15 +226,14 @@ tool to adjust this process.
224226
to the website. This gives you a chance to inspect all generated files
225227
etc. before finally making the new release public.
226228
227-
- `-f`, `--force`: for safety reasons, `release` will abort immediately if it
228-
thinks that a release with the same version number has already been
229-
made, e.g. because the tag for the release already exists. This is
230-
done because the GAP package distribution strongly advices against
231-
reusing the same version for different content. However, this check
232-
might be wrongly triggered, e.g. because an attempt to release the
233-
current version was aborted earlier due to another error. In this
234-
case, you can use the `--force` option to instruct `release` to
235-
disable this check.
229+
- `-f`, `--force`: for safety reasons, `release-gap-package` will abort
230+
immediately if it thinks that a release with the same version number has
231+
already been made, e.g. because the tag for the release already exists.
232+
This is done because the GAP package distribution strongly advices against
233+
reusing the same version for different content. However, this check might
234+
be wrongly triggered, e.g. because an attempt to release the current
235+
version was aborted earlier due to another error. In this case, you can use
236+
the `--force` option to instruct `release-gap-package` to disable this check.
236237
237238
2. **Options which adjust paths:**
238239
@@ -252,9 +253,9 @@ tool to adjust this process.
252253
in this README.
253254
254255
255-
### What the `release` script does
256+
### What the `release-gap-package` script does
256257
257-
The `release` script does multiple things for you:
258+
The `release-gap-package` script does multiple things for you:
258259
259260
1. It creates archive files in a subdirectory `tmp` of the current directory.
260261
For now, it knows how to create `.tar.gz`, `.tar.bz2` and `.zip` files.
@@ -276,7 +277,7 @@ The `release` script does multiple things for you:
276277
277278
then you can achieve this by editing your `PackageInfo.g`.
278279
279-
To create these archives, `release` uses `git archive`
280+
To create these archives, `release-gap-package` uses `git archive`
280281
to export precisely the files in your repository present in the commit
281282
tagged `v1.2.3`. This ensures
282283
that *only* files that are present in your repository will be added,
@@ -306,10 +307,10 @@ The `release` script does multiple things for you:
306307
307308
## GitHub access token
308309
309-
The `release` script needs limited write access to your repository in
310-
order to upload the release archives for you. In order to do this,
311-
the scripts needs to authenticate itself with GitHub, for which it needs
312-
a so-called "personal access token". You can generate such a token as follows
310+
The `release-gap-package` script needs limited write access to your repository
311+
in order to upload the release archives for you. In order to do this, the
312+
scripts needs to authenticate itself with GitHub, for which it needs a
313+
so-called "personal access token". You can generate such a token as follows
313314
(see also <https://help.github.com/articles/creating-an-access-token-for-command-line-use>).
314315
315316
1. Go to <https://github.com/settings/tokens>.
@@ -324,7 +325,7 @@ a so-called "personal access token". You can generate such a token as follows
324325
off the page, you will not be able to see the token again. You therefore
325326
should store it somewhere, e.g. with option 3 in the following list.
326327
327-
There are multiple ways to tell the `release` script what your token is.
328+
There are multiple ways to tell the `release-gap-package` script what your token is.
328329
In order of their precedence from lowest to highest:
329330
330331
1. **Recommended**: Create a file `~/.github_shell_token` containing your
@@ -343,11 +344,11 @@ In order of their precedence from lowest to highest:
343344
3. Set the environment variable `TOKEN` to the token value.
344345
This is mainly useful in scripts. E.g.
345346
346-
TOKEN=VALUE ./release ...
347+
TOKEN=VALUE ./release-gap-package ...
347348
348349
4. Use the `--token` command line option:
349350
350-
./release --token VALUE ...
351+
./release-gap-package --token VALUE ...
351352
352353
353354
## Contact

0 commit comments

Comments
 (0)