summarylogtreecommitdiffstats
path: root/run-kyrandia-book1-fr.sh
blob: b79f6c72088cd3f84f57dbc912f328ee93632c68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

pkgname=dosbox-kyrandia-book1-fr

usage="$(basename "$0") [-h] -- program to run the kyrandia game with dosbox, french version.

where:
    -h  show this help text

Note : All the files of the game are put in the ~/.${pkgname} directory."


# Copy every file in home, otherwise cannot save
mkdir -p ~/.${pkgname}/
shopt -s extglob
# Copy everything except the current file
# Do not overwrite the existing files
cp -n /opt/${pkgname}/!(*.sh) ~/.${pkgname}/

# Run the game 
dosbox ~/.${pkgname}/KYRANDIA.BAT