Rename wingames.lst to gamedesc.txt, and add a couple of extra fields

to it giving each game's "internal" name (as seen in the source file,
.R etc) and also a brief description of the game. The idea of the
latter is that it should be usable as a comment field in .desktop
files and similar.

[originally from svn r9858]
This commit is contained in:
Simon Tatham
2013-06-08 16:29:15 +00:00
parent b6ee9debcf
commit 5dda5cf1d0
44 changed files with 103 additions and 103 deletions

View File

@ -29,7 +29,7 @@ in puzzles do make clean
in puzzles do make -f Makefile.doc clean in puzzles do make -f Makefile.doc clean
in puzzles do make -f Makefile.doc chm in puzzles do make -f Makefile.doc chm
in puzzles do make -f Makefile.doc # build help file for installer in puzzles do make -f Makefile.doc # build help file for installer
in puzzles do perl winiss.pl $(revision) wingames.lst > puzzles.iss in puzzles do perl winiss.pl $(revision) gamedesc.txt > puzzles.iss
delegate windows delegate windows
# Ignore the poorly controlled return value from HHC, and instead # Ignore the poorly controlled return value from HHC, and instead
# just test that the output file was generated. # just test that the output file was generated.
@ -66,7 +66,7 @@ in puzzles do chmod +x *.exe
# approaches such as a third-party CAB generator), I don't think I # approaches such as a third-party CAB generator), I don't think I
# can sensibly enable this build. # can sensibly enable this build.
#in puzzles do perl wceinf.pl wingames.lst > puzzles.inf #in puzzles do perl wceinf.pl gamedesc.txt > puzzles.inf
#delegate windows #delegate windows
# in puzzles do cmd /c 'wcearmv4 & nmake -f Makefile.wce clean' # in puzzles do cmd /c 'wcearmv4 & nmake -f Makefile.wce clean'
# in puzzles do cmd /c 'wcearmv4 & nmake -f Makefile.wce VER=-DREVISION=$(revision)' # in puzzles do cmd /c 'wcearmv4 & nmake -f Makefile.wce VER=-DREVISION=$(revision)'
@ -89,11 +89,11 @@ in puzzles/doc do halibut --html -Chtml-contents-filename:index.html -Chtml-inde
in puzzles/devel do halibut --html -Chtml-contents-filename:index.html -Chtml-index-filename:indexpage.html -Chtml-template-filename:%k.html -Chtml-template-fragment:%k ../devel.but in puzzles/devel do halibut --html -Chtml-contents-filename:index.html -Chtml-index-filename:indexpage.html -Chtml-template-filename:%k.html -Chtml-template-fragment:%k ../devel.but
# Move the deliver-worthy Windows binaries (those specified in # Move the deliver-worthy Windows binaries (those specified in
# wingames.lst, which is generated by mkfiles.pl and helpfully # gamedesc.txt, which is generated by mkfiles.pl and helpfully
# excludes the command-line auxiliary utilities such as solosolver, # excludes the command-line auxiliary utilities such as solosolver,
# and nullgame.exe) into a subdirectory for easy access. # and nullgame.exe) into a subdirectory for easy access.
in puzzles do mkdir winbin in puzzles do mkdir winbin
in puzzles do mv `cut -f1 -d: wingames.lst` winbin in puzzles do mv `cut -f2 -d: gamedesc.txt` winbin
# Make a zip file of the Windows binaries and help files. # Make a zip file of the Windows binaries and help files.
in puzzles do zip -j puzzles.zip winbin/*.exe puzzles.chm puzzles.hlp puzzles.cnt in puzzles do zip -j puzzles.zip winbin/*.exe puzzles.chm puzzles.hlp puzzles.cnt

View File

@ -17,8 +17,8 @@ Create a .R file for it which:
- adds auxiliary solver binaries if any - adds auxiliary solver binaries if any
- adds it to $(GAMES) in the GTK makefile, for `make install' - adds it to $(GAMES) in the GTK makefile, for `make install'
- adds it to list.c for the OS X binary - adds it to list.c for the OS X binary
- adds it to wingames.lst along with a textual name, for the build - adds it to gamedesc.txt, with its Windows executable name, display
system and Windows installer. name, and slightly longer description.
If the puzzle is by a new author, modify the copyright notice in If the puzzle is by a new author, modify the copyright notice in
LICENCE and in puzzles.but. (Also in index.html, but that's listed LICENCE and in puzzles.but. (Also in index.html, but that's listed

View File

@ -14,6 +14,6 @@ GAMES += blackbox
A(blackbox) \ A(blackbox) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
blackbox.exe:Black Box blackbox:blackbox.exe:Black Box:Ball-finding puzzle
!end !end

View File

@ -16,6 +16,6 @@ GAMES += bridges
A(bridges) \ A(bridges) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
bridges.exe:Bridges bridges:bridges.exe:Bridges:Bridge-placing puzzle
!end !end

4
cube.R
View File

@ -14,6 +14,6 @@ GAMES += cube
A(cube) \ A(cube) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
cube.exe:Cube cube:cube.exe:Cube:Rolling cube puzzle
!end !end

View File

@ -16,6 +16,6 @@ GAMES += dominosa
A(dominosa) \ A(dominosa) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
dominosa.exe:Dominosa dominosa:dominosa.exe:Dominosa:Domino tiling puzzle
!end !end

View File

@ -14,6 +14,6 @@ GAMES += fifteen
A(fifteen) \ A(fifteen) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
fifteen.exe:Fifteen fifteen:fifteen.exe:Fifteen:Sliding block puzzle
!end !end

View File

@ -19,6 +19,6 @@ GAMES += filling
A(filling) \ A(filling) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
filling.exe:Filling filling:filling.exe:Filling:Polyomino puzzle
!end !end

4
flip.R
View File

@ -16,6 +16,6 @@ GAMES += flip
A(flip) \ A(flip) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
flip.exe:Flip flip:flip.exe:Flip:Tile inversion puzzle
!end !end

View File

@ -23,6 +23,6 @@ GAMES += galaxies
A(galaxies) \ A(galaxies) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
galaxies.exe:Galaxies galaxies:galaxies.exe:Galaxies:Symmetric polyomino puzzle
!end !end

View File

@ -14,6 +14,6 @@ GAMES += guess
A(guess) \ A(guess) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
guess.exe:Guess guess:guess.exe:Guess:Combination-guessing puzzle
!end !end

View File

@ -14,6 +14,6 @@ GAMES += inertia
A(inertia) \ A(inertia) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
inertia.exe:Inertia inertia:inertia.exe:Inertia:Gem-collecting puzzle
!end !end

4
keen.R
View File

@ -20,6 +20,6 @@ GAMES += keen
A(keen) \ A(keen) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
keen.exe:Keen keen:keen.exe:Keen:Arithmetic Latin square puzzle
!end !end

View File

@ -19,6 +19,6 @@ GAMES += lightup
A(lightup) \ A(lightup) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
lightup.exe:Light Up lightup:lightup.exe:Light Up:Light-bulb placing puzzle
!end !end

View File

@ -26,6 +26,6 @@ GAMES += loopy
A(loopy) \ A(loopy) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
loopy.exe:Loopy loopy:loopy.exe:Loopy:Loop-drawing puzzle
!end !end

View File

@ -19,6 +19,6 @@ GAMES += magnets
A(magnets) \ A(magnets) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
magnets.exe:Magnets magnets:magnets.exe:Magnets:Magnet-placing puzzle
!end !end

4
map.R
View File

@ -19,6 +19,6 @@ GAMES += map
A(map) \ A(map) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
map.exe:Map map:map.exe:Map:Map-colouring puzzle
!end !end

View File

@ -19,6 +19,6 @@ GAMES += mines
A(mines) \ A(mines) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
mines.exe:Mines mines:mines.exe:Mines:Mine-finding puzzle
!end !end

4
net.R
View File

@ -18,6 +18,6 @@ GAMES += net
A(net) \ A(net) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
netgame.exe:Net net:netgame.exe:Net:Network jigsaw puzzle
!end !end

View File

@ -16,6 +16,6 @@ GAMES += netslide
A(netslide) \ A(netslide) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
netslide.exe:Netslide netslide:netslide.exe:Netslide:Toroidal sliding network puzzle
!end !end

View File

@ -17,6 +17,6 @@ GAMES += pattern
A(pattern) \ A(pattern) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
pattern.exe:Pattern pattern:pattern.exe:Pattern:Pattern puzzle
!end !end

View File

@ -18,6 +18,6 @@ GAMES += pearl
A(pearl) \ A(pearl) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
pearl.exe:Pearl pearl:pearl.exe:Pearl:Loop-drawing puzzle
!end !end

4
pegs.R
View File

@ -16,6 +16,6 @@ GAMES += pegs
A(pegs) \ A(pegs) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
pegs.exe:Pegs pegs:pegs.exe:Pegs:Peg solitaire puzzle
!end !end

View File

@ -14,6 +14,6 @@ GAMES += range
A(range) \ A(range) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
range.exe:Range range:range.exe:Range:Visible-distance puzzle
!end !end

4
rect.R
View File

@ -14,6 +14,6 @@ GAMES += rect
A(rect) \ A(rect) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
rect.exe:Rectangles rect:rect.exe:Rectangles:Rectangles puzzle
!end !end

View File

@ -14,6 +14,6 @@ GAMES += samegame
A(samegame) \ A(samegame) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
samegame.exe:Same Game samegame:samegame.exe:Same Game:Block-clearing puzzle
!end !end

View File

@ -18,6 +18,6 @@ GAMES += signpost
A(signpost) \ A(signpost) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
signpost.exe:Signpost signpost:signpost.exe:Signpost:Square-connecting puzzle
!end !end

View File

@ -18,6 +18,6 @@ GAMES += singles
A(singles) \ A(singles) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
singles.exe:Singles singles:singles.exe:Singles:Number-removing puzzle
!end !end

View File

@ -14,6 +14,6 @@ GAMES += sixteen
A(sixteen) \ A(sixteen) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
sixteen.exe:Sixteen sixteen:sixteen.exe:Sixteen:Toroidal sliding block puzzle
!end !end

View File

@ -19,6 +19,6 @@ GAMES += slant
A(slant) \ A(slant) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
slant.exe:Slant slant:slant.exe:Slant:Maze-drawing puzzle
!end !end

4
solo.R
View File

@ -19,6 +19,6 @@ GAMES += solo
A(solo) \ A(solo) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
solo.exe:Solo solo:solo.exe:Solo:Number placement puzzle
!end !end

View File

@ -19,6 +19,6 @@ GAMES += tents
A(tents) \ A(tents) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
tents.exe:Tents tents:tents.exe:Tents:Tent-placing puzzle
!end !end

View File

@ -20,6 +20,6 @@ GAMES += towers
A(towers) \ A(towers) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
towers.exe:Towers towers:towers.exe:Towers:Tower-placing Latin square puzzle
!end !end

View File

@ -14,6 +14,6 @@ GAMES += twiddle
A(twiddle) \ A(twiddle) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
twiddle.exe:Twiddle twiddle:twiddle.exe:Twiddle:Rotational sliding block puzzle
!end !end

View File

@ -13,6 +13,6 @@ GAMES += undead
A(undead) \ A(undead) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
undead.exe:Undead undead:undead.exe:Undead:Monster-placing puzzle
!end !end

View File

@ -22,6 +22,6 @@ GAMES += unequal
A(unequal) \ A(unequal) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
unequal.exe:Unequal unequal:unequal.exe:Unequal:Latin square puzzle
!end !end

View File

@ -20,6 +20,6 @@ GAMES += group
A(group) \ A(group) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
group.exe:Group unfinished/group:group.exe:Group:Group theory puzzle
!end !end

View File

@ -16,6 +16,6 @@ GAMES += separate
A(separate) \ A(separate) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
separate.exe:Separate unfinished/separate:separate.exe:Separate:Rectangle-dividing puzzle
!end !end

View File

@ -19,6 +19,6 @@ GAMES += slide
A(slide) \ A(slide) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
slide.exe:Slide unfinished/slide:slide.exe:Slide:Sliding block puzzle
!end !end

View File

@ -14,6 +14,6 @@ GAMES += sokoban
A(sokoban) \ A(sokoban) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
sokoban.exe:Sokoban unfinished/sokoban:sokoban.exe:Sokoban:Barrel-pushing puzzle
!end !end

View File

@ -16,6 +16,6 @@ GAMES += unruly
A(unruly) \ A(unruly) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
unruly.exe:Unruly unruly:unruly.exe:Unruly:Black and white grid puzzle
!end !end

View File

@ -16,6 +16,6 @@ GAMES += untangle
A(untangle) \ A(untangle) \
!end !end
!begin >wingames.lst !begin >gamedesc.txt
untangle.exe:Untangle untangle:untangle.exe:Untangle:Planar graph layout puzzle
!end !end

View File

@ -2,22 +2,22 @@
# Perl script to generate a .INF file for building a Pocket PC .CAB # Perl script to generate a .INF file for building a Pocket PC .CAB
# archive of Puzzles. This has to be scripted so that it can read # archive of Puzzles. This has to be scripted so that it can read
# wingames.lst and automatically adjust to the current available # gamedesc.txt and automatically adjust to the current available
# set of puzzles. # set of puzzles.
# Usage: # Usage:
# #
# $ ./wceinf.pl wingames.lst > puzzles.inf # $ ./wceinf.pl gamedesc.txt > puzzles.inf
$lst = shift @ARGV; $desc = shift @ARGV;
open LST, "<", $lst; open DESC, "<", $desc;
while (<LST>) { while (<DESC>) {
chomp; chomp;
split /:/; @_ = split /:/;
push @exes, $_[0]; push @exes, $_[1];
$names{$_[0]} = $_[1]; $names{$_[1]} = $_[2];
} }
close LST; close DESC;
print '[Version]'."\n"; print '[Version]'."\n";
print 'Signature = "$Windows NT$" ; required as-is'."\n"; print 'Signature = "$Windows NT$" ; required as-is'."\n";

View File

@ -1,12 +1,12 @@
#!/usr/bin/perl #!/usr/bin/perl
# Perl script to generate an Inno Setup installer script for # Perl script to generate an Inno Setup installer script for
# Puzzles. This has to be scripted so that it can read wingames.lst # Puzzles. This has to be scripted so that it can read gamedesc.txt
# and automatically adjust to the current available set of puzzles. # and automatically adjust to the current available set of puzzles.
# Usage: # Usage:
# #
# $ ./winiss.pl 1234 wingames.lst > puzzles.iss # $ ./winiss.pl 1234 gamedesc.txt > puzzles.iss
# #
# where `1234' is the revision number which will be encoded in the # where `1234' is the revision number which will be encoded in the
# installer's version indicators. # installer's version indicators.
@ -15,15 +15,15 @@ use warnings;
$rev = shift @ARGV; $rev = shift @ARGV;
($revclean=$rev) =~ s/M$//; ($revclean=$rev) =~ s/M$//;
$lst = shift @ARGV; $desc = shift @ARGV;
open LST, "<", $lst; open DESC, "<", $desc;
while (<LST>) { while (<DESC>) {
chomp; chomp;
@_ = split /:/; @_ = split /:/;
push @exes, $_[0]; push @exes, $_[1];
$names{$_[0]} = $_[1]; $names{$_[1]} = $_[2];
} }
close LST; close DESC;
print '; -*- no -*-'."\n"; print '; -*- no -*-'."\n";
print ';'."\n"; print ';'."\n";