Skip to content

Commit c313654

Browse files
authored
Merge branch 'phyver:master' into devcontainer
2 parents 7b4218d + d345dbe commit c313654

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1600
-249
lines changed

.github/workflows/latest_game_archive.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ on:
44
push:
55
branches:
66
- "master"
7-
tags-ignore:
8-
- "*"
97

108
jobs:
119
pre-release:
10+
name: "latest release"
1211
runs-on: "ubuntu-latest"
12+
1313
steps:
1414
- name: "Checkout source code"
1515
uses: "actions/checkout@v4"

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Images/gsh-*-orig.gif
12
tmp
23
TODO
34
.bin
@@ -8,8 +9,6 @@ TODO
89
World
910
locale/
1011
*~
11-
gameshell.sh
12-
gameshell-save.sh
13-
gameshell.tgz
14-
boxes-data.awk
12+
gameshell*
1513
game shell*
14+
boxes-data.awk

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN apt install --no-install-recommends --assume-yes \
1111
procps \
1212
nano \
1313
tree \
14-
bsdmainutils \
14+
ncal \
1515
x11-apps
1616
RUN apt clean
1717
RUN rm -rf /var/lib/apt/lists/*

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,22 @@ new: i18n/template.pot
3737
## check that the auto.sh scripts work as expected
3838
check: clean
3939
./utils/archive.sh -at -N "game shell (1)"
40-
./"game shell (1).sh" -q -c 'gsh systemconfig; for _ in $$(seq 42); do gsh auto --abort < <(echo gsh); done; gsh stat'
40+
./"game shell (1).sh" -q -c 'gsh systemconfig; for _ in $$(seq 50); do gsh auto --abort < <(echo gsh); done; gsh stat'
4141

4242
## check that the auto.sh scripts work as expected, in verbose mode
4343
check-verbose: clean
4444
./utils/archive.sh -at -N "game shell (1)"
45-
./"game shell (1).sh" -Dq -c 'gsh systemconfig; for _ in $$(seq 42); do gsh auto --abort; done; gsh stat'
45+
./"game shell (1).sh" -Dq -c 'gsh systemconfig; for _ in $$(seq 50); do gsh auto --abort; done; gsh stat'
4646

4747
## run all the test.sh and auto.sh scripts
4848
tests-bash: clean
4949
./utils/archive.sh -at -N "game shell (1)"
50-
./"game shell (1).sh" -Bdq -c 'gsh systemconfig; for _ in $$(seq 42); do gsh goal|cat; gsh test --abort; gsh auto --abort; done; gsh stat'
50+
./"game shell (1).sh" -Bdq -c 'gsh systemconfig; for _ in $$(seq 50); do gsh goal|cat; gsh test --abort; gsh auto --abort; done; gsh stat'
5151

5252
## run all the test.sh and auto.sh scripts
5353
tests-zsh: clean
5454
./utils/archive.sh -at -N "game shell (1)"
55-
./"game shell (1).sh" -Zdq -c 'gsh systemconfig; for _ in $$(seq 42); do gsh goal|cat; gsh test --abort; gsh auto --abort; done; gsh stat'
55+
./"game shell (1).sh" -Zdq -c 'gsh systemconfig; for _ in $$(seq 50); do gsh goal|cat; gsh test --abort; gsh auto --abort; done; gsh stat'
5656

5757
clean:
5858
rm -rf i18n/*~ locale gameshell gameshell.tar gameshell.tgz gameshell.sh gameshell-save*.sh scripts/boxes-data.awk

README-fr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ missions ont des dépendances additionnelles : elles seront annulées si leurs
3535
dépendances ne sont pas satisfaites. Sur Debian ou Ubuntu, lancez la commande
3636
suivante pour installer toutes les dépendances pour le jeu et les missions.
3737
```sh
38-
$ sudo apt install gettext-base man-db psmisc nano tree bsdmainutils x11-apps
38+
$ sudo apt install gettext-base man-db psmisc nano tree ncal x11-apps
3939
```
4040
Consultez le [manuel utilisateur](doc/user_manual.md) (en anglais) pour voir
4141
comment installer les dépendances sur d'autres systèmes (macOS, BSD, ...).

README-it.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Come cominciare
2121
GameShell dovrebbe funzionare in qualunque sistema Linux standard, e anche su macOS e BSD (ma abbiamo eseguito pochi test su questi). Su Debian e Ubuntu, le uniche dipendenze (oltre `bash`) sono i pacchetti `gettext-base` e `awk`(questo di solito presente di default). Alcune missioni hanno dipendenze addizionali: queste missioni verranno saltate se le dipendenze non sono state risolte.
2222
Su Debian o Ubuntu, esegui i comandi seguenti per installare tutte le dipendenze del gioco e delle missioni.
2323
```sh
24-
$ sudo apt install gettext man-db procps psmisc nano tree bsdmainutils x11-apps wget
24+
$ sudo apt install gettext man-db procps psmisc nano tree ncal x11-apps wget
2525
```
2626
Controlla il [manuale utente](doc/user_manual.md) per vedere come installare le dipendenze su altri sistemi (macOS, BSD, ...).
2727

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dependencies: these missions will be skipped if the dependencies are not met.
3838
On Debian or Ubuntu, run the following command to install all game and mission
3939
dependencies.
4040
```sh
41-
$ sudo apt install gettext man-db procps psmisc nano tree bsdmainutils x11-apps wget
41+
$ sudo apt install gettext man-db procps psmisc nano tree ncal x11-apps wget
4242
```
4343
Check the [user manual](doc/user_manual.md) to see how to install the game
4444
dependencies on other systems (macOS, BSD, ...).

doc/deps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ the following
2020
- `pstree` (`psmisc` package in Debian/Ubuntu)
2121
- `nano` (`nano` package in Debian/Ubuntu)
2222
- `tree` (`tree` package in Debian/Ubuntu)
23-
- `cal` (`bsdmainutils` package in Debian/Ubuntu)
23+
- `cal` (`ncal` package in Debian/Ubuntu)
2424
- `xeyes` (`x11-apps` package in Debian/Ubuntu)
2525

2626
On a Debian / Ubuntu system, the following ensures you have everything you
2727
need to run GameShell without problems.
2828

2929
```sh
30-
$ sudo apt install gettext-base man-db procps psmisc nano tree bsdmainutils x11-apps
30+
$ sudo apt install gettext-base man-db procps psmisc nano tree ncal x11-apps
3131
```
3232

3333

doc/gameshell.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,13 @@ You can customize the archive with the following options
139139
GameShell will ask for the player's name and email. This is useful in the
140140
classroom as it makes it easier to link a game to the corresponding student.
141141
(The player can run the archive in anonymous mode with the `-A` option.)
142-
* `--password PASSWORD`: you can choose the admin password for the archive.
142+
* `-p PASSWORD`: you can choose the admin password for the archive.
143143
This is also useful in the classroom as we might not want the students to
144144
learn of this password. :)
145-
* `-a`: keep the automatic scripts. Some missions come with a script that
146-
automagically completes the missions. By default, those scripts are **not**
147-
included in the archive. Use `-a` if you want to keep them.
148145
* `-N NAME`: if you want the archive and its directory to be called something
149146
other than "GameShell", you can set the name with this option.
150-
* `-k`: keep the GameShell archive. The compressed `tar` archive is appended
151-
to a shell script to create the executable archive. With this option, you
152-
can keep the "standard" `tar` archive as well as the executable one.
147+
148+
More options are available and listed in the output of
149+
```sh
150+
$ ./utils/archive.sh -h
151+
```

doc/mission.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -442,13 +442,13 @@ which make testing easier.
442442
Those files are not included in GameShell archives.
443443

444444

445-
Adding the mission to the `index.txt` file
446-
----------------------------------------
445+
Adding the mission to the `default.idx` file
446+
------------------------------------------
447447

448448
When run without arguments GameShell will get the list of mission from the
449-
file `$GSH_ROOT/missions/index.txt`.
449+
file `$GSH_ROOT/missions/default.idx`.
450450

451-
You can give a list of `index.txt` files and mission directories as arguments
451+
You can give a list of `default.idx` files and mission directories as arguments
452452
of GameShell if you want to customize the list / order of missions. This is
453453
particularly useful when testing a new mission:
454454
```sh
@@ -464,7 +464,7 @@ Dummy missions
464464

465465
"Dummy" missions are used to share data between missions. A mission is "dummy"
466466
* either when it doesn't contain a `check.sh` script,
467-
* or it is listed with a "`!`" in front of its name in the `index.txt` file.
467+
* or it is listed with a "`!`" in front of its name in the `default.idx` file.
468468

469469
A dummy mission is used during the initialisation phase, so that it can
470470
contain a `static.sh` file. It can for example be used to share executable
@@ -483,7 +483,7 @@ cp "$MISSION_DIR/../00_shared/ascii-art/elephant.txt" "$GSH_HOME/Jungle/"
483483
```
484484

485485
_Note:_ don't forget to include dummy missions in the corresponding
486-
`index.txt` file, or it won't be included in GameShell executable archives by
486+
`default.idx` file, or it won't be included in GameShell executable archives by
487487
default.
488488

489489

0 commit comments

Comments
 (0)