diff --git a/2048/.package b/2048/.package index 9a3e477..c5171d0 100644 --- a/2048/.package +++ b/2048/.package @@ -2,4 +2,4 @@ N;2048 F;2048.COM S;2048.ASM R;README.md -D;2048 game for CP/M + VT100/ANSI color +D;2048 - 2048 game for CP/M (VT100/ANSI color) diff --git a/Backgammon/.package b/Backgammon/.package index e348636..e36d88d 100644 --- a/Backgammon/.package +++ b/Backgammon/.package @@ -1,8 +1,9 @@ -N;BACKGMMN +N;GAMMON F;backgmmn.com S;backgmmn.c S;gameplan.c S;gameplan.hdr S;mylib2.c -R;README.md -D;Backgammon game for CP/M + VT100/ANSI color +R;README.md;BACKGMMN.DOC +D;GAMMON IV v2.0 - Backgammon game for CP/M +D;patched for VT100 and ANSI color diff --git a/Battleships/.package b/Battleships/.package index 761a7f8..13452d2 100644 --- a/Battleships/.package +++ b/Battleships/.package @@ -4,4 +4,5 @@ S;bs.c S;esr.txt R;README.md;BS.DOC S;readme.txt -D;Battleships for CP/M + VT100 +D;BATTLESHIPS v2.1 - Play Battleships +D;against the computer on CP/M + VT100 diff --git a/Blocks/.package b/Blocks/.package index 0592ce0..5bf139b 100644 --- a/Blocks/.package +++ b/Blocks/.package @@ -4,4 +4,5 @@ S;blocks.c S;kslibfun.h S;kslib.h R;README.md -D;Blocks, a SameGame clone for CP/M + VT100/ANSI(color) +D;BLOCKS! - A SameGame clone for CP/M +D;adapted for VT100/ANSI color diff --git a/CatChum/.package b/CatChum/.package index dd749b9..e0bbe26 100644 --- a/CatChum/.package +++ b/CatChum/.package @@ -3,4 +3,6 @@ F;CATCHUM.COM F;CATCHUM.DAT F;CATCONF.COM R;README.md -D;CatChum - a PacMan Clone for CP/M +D;CATCHUM - a PacMan Clone for CP/M +D;configured for VT100, includes +D;configuration program diff --git a/FindThatMine/.package b/FindThatMine/.package index 550449f..3c72a05 100644 --- a/FindThatMine/.package +++ b/FindThatMine/.package @@ -4,5 +4,5 @@ F;ftm.com S;gpl-3.0.txt;GPL3.TXT S;ks.h R;README.md -D;FindThatMine, a Minesweeper clone for CP/M -D;VT100/ANSI color version +D;FINDTHATMINE v2.1, a Minesweeper clone +D;for CP/M - VT100/ANSI color version diff --git a/Ladder/.package b/Ladder/.package index 365f0f2..8f21079 100644 --- a/Ladder/.package +++ b/Ladder/.package @@ -3,5 +3,6 @@ F;LADCONF.COM F;LADDER.COM F;LADDER.DAT R;README.md -D;Ladder - a jump and run game for CP/M -D;(configured for VT100) +D;LADDER - a jump and run game for CP/M +D;configured for VT100, includes +D;configuration program diff --git a/LadderTP/.package b/LadderTP/.package index f07c85e..5e84700 100644 --- a/LadderTP/.package +++ b/LadderTP/.package @@ -13,6 +13,6 @@ S;LADTYPE.PAS S;LADUTILS.PAS S;LADVAR.PAS R;README.md -D;Ladder (TP version) - jump and run game for CP/M +D;TPLADDER - jump and run game for CP/M D;Recreation of Ladder in Turbo Pascal D;configured for VT100 terminal diff --git a/MazezaM/.package b/MazezaM/.package index 1f777dd..ec8f911 100644 --- a/MazezaM/.package +++ b/MazezaM/.package @@ -3,5 +3,5 @@ S;Makefile S;mazezam.c F;mazezam.com R;README.md -D;MazezaM - a puzzle game for CP/M +D;MAZEZAM - a puzzle game for CP/M D;for VT100/ANSI color terminals - 42 levels! diff --git a/Pac/.package b/Pac/.package index 6a25b00..86bcf39 100644 --- a/Pac/.package +++ b/Pac/.package @@ -6,5 +6,5 @@ S;Makefile S;pac.c F;pac.com R;README.md -D;Pac - a PacMan clone for CP/M +D;PAC - a PacMan clone for CP/M D;for VT100/ANSI color terminals diff --git a/Packages/README.md b/Packages/README.md new file mode 100644 index 0000000..21d9dd2 --- /dev/null +++ b/Packages/README.md @@ -0,0 +1,46 @@ +# Packages + +In this directory, I created ``.zip`` packages of all games for BBS distribution. + +The files are created by using Info-ZIP ``zip`` on Linux. + +## The .zip packages + +All .zip packages are placed in the directory [ZIP](ZIP/). + +The files can be extracted using the CP/M UNZIP command that can also be found here: + +* [UNZIP154.COM](UNZIP154.COM) - CP/M binary +* [UNZIP154.LBR](UNZIP154.LBR) - archive including source + +The Github repository for this UNZIP can be found here: https://github.com/agn453/UNZIP-CPM-Z80 + +## Package creation + +I've created scripts to automatically create the .zip archives as well as the HDimage. +For this to work, in every game directory, a file called ``.package`` is created which controls +the package creation process. + +``.package`` is a semicolon separated file. + +The first value contains a letter which indicates: + +| N | name of the package (for .zip creation) | +| F | file (binary or game data) | +| S | source file (won't be put into HDimage) | +| R | README file, will be renamed .DOC | +| D | description, will be put into ``FILE_ID.DIZ`` | + +The second value contains the value for the kind of line. + +Optionally, a third value can exist for ``F``, ``S`` and ``R`` lines which defines a target filename, +eg. if the original filename does not conform to the ``8.3`` format. The file will be put in the archive +under this new filename. +For example: + + S;gpl-3.0.txt;GPL3.TXT + +will put the file ``gpl-3.0.txt`` as ``GPL3.TXT`` in the .zip file, but not in the HDimage (as +source files will only be put in the .zip archives). + + diff --git a/Packages/UNZIP154.COM b/Packages/UNZIP154.COM new file mode 100644 index 0000000..f057263 Binary files /dev/null and b/Packages/UNZIP154.COM differ diff --git a/Packages/UNZIP154.LBR b/Packages/UNZIP154.LBR new file mode 100644 index 0000000..6279621 Binary files /dev/null and b/Packages/UNZIP154.LBR differ diff --git a/Packages/ZIP/2048.ZIP b/Packages/ZIP/2048.ZIP new file mode 100644 index 0000000..4a28cf8 Binary files /dev/null and b/Packages/ZIP/2048.ZIP differ diff --git a/Packages/ZIP/BATTLSHP.ZIP b/Packages/ZIP/BATTLSHP.ZIP new file mode 100644 index 0000000..eb34152 Binary files /dev/null and b/Packages/ZIP/BATTLSHP.ZIP differ diff --git a/Packages/ZIP/BLOCKS.ZIP b/Packages/ZIP/BLOCKS.ZIP new file mode 100644 index 0000000..7039a94 Binary files /dev/null and b/Packages/ZIP/BLOCKS.ZIP differ diff --git a/Packages/ZIP/CATCHUM.ZIP b/Packages/ZIP/CATCHUM.ZIP new file mode 100644 index 0000000..889f9b2 Binary files /dev/null and b/Packages/ZIP/CATCHUM.ZIP differ diff --git a/Packages/ZIP/CHASE.ZIP b/Packages/ZIP/CHASE.ZIP new file mode 100644 index 0000000..9c35e14 Binary files /dev/null and b/Packages/ZIP/CHASE.ZIP differ diff --git a/Packages/ZIP/CPMTRIS.ZIP b/Packages/ZIP/CPMTRIS.ZIP new file mode 100644 index 0000000..5d5c2f1 Binary files /dev/null and b/Packages/ZIP/CPMTRIS.ZIP differ diff --git a/Packages/ZIP/FTM.ZIP b/Packages/ZIP/FTM.ZIP new file mode 100644 index 0000000..3cf61f7 Binary files /dev/null and b/Packages/ZIP/FTM.ZIP differ diff --git a/Packages/ZIP/GAMMON.ZIP b/Packages/ZIP/GAMMON.ZIP new file mode 100644 index 0000000..d6aec32 Binary files /dev/null and b/Packages/ZIP/GAMMON.ZIP differ diff --git a/Packages/ZIP/LADDER.ZIP b/Packages/ZIP/LADDER.ZIP new file mode 100644 index 0000000..87110cb Binary files /dev/null and b/Packages/ZIP/LADDER.ZIP differ diff --git a/Packages/ZIP/MAZEZAM.ZIP b/Packages/ZIP/MAZEZAM.ZIP new file mode 100644 index 0000000..939cd12 Binary files /dev/null and b/Packages/ZIP/MAZEZAM.ZIP differ diff --git a/Packages/ZIP/PAC.ZIP b/Packages/ZIP/PAC.ZIP new file mode 100644 index 0000000..cd5cbae Binary files /dev/null and b/Packages/ZIP/PAC.ZIP differ diff --git a/Packages/ZIP/QUATRIS.ZIP b/Packages/ZIP/QUATRIS.ZIP new file mode 100644 index 0000000..7f537ac Binary files /dev/null and b/Packages/ZIP/QUATRIS.ZIP differ diff --git a/Packages/ZIP/ROBOTS.ZIP b/Packages/ZIP/ROBOTS.ZIP new file mode 100644 index 0000000..b8e7dda Binary files /dev/null and b/Packages/ZIP/ROBOTS.ZIP differ diff --git a/Packages/ZIP/ROGUE.ZIP b/Packages/ZIP/ROGUE.ZIP new file mode 100644 index 0000000..761e580 Binary files /dev/null and b/Packages/ZIP/ROGUE.ZIP differ diff --git a/Packages/ZIP/SNAKE.ZIP b/Packages/ZIP/SNAKE.ZIP new file mode 100644 index 0000000..15290bc Binary files /dev/null and b/Packages/ZIP/SNAKE.ZIP differ diff --git a/Packages/ZIP/SOKOBAN.ZIP b/Packages/ZIP/SOKOBAN.ZIP new file mode 100644 index 0000000..8ea08ed Binary files /dev/null and b/Packages/ZIP/SOKOBAN.ZIP differ diff --git a/Packages/ZIP/TPLADDER.ZIP b/Packages/ZIP/TPLADDER.ZIP new file mode 100644 index 0000000..37baff0 Binary files /dev/null and b/Packages/ZIP/TPLADDER.ZIP differ diff --git a/Packages/ZIP/WANDERER.ZIP b/Packages/ZIP/WANDERER.ZIP new file mode 100644 index 0000000..2e476df Binary files /dev/null and b/Packages/ZIP/WANDERER.ZIP differ diff --git a/Packages/ZIP/WORM.ZIP b/Packages/ZIP/WORM.ZIP new file mode 100644 index 0000000..2517ee3 Binary files /dev/null and b/Packages/ZIP/WORM.ZIP differ diff --git a/Packages/makepackages.sh b/Packages/makepackages.sh new file mode 100755 index 0000000..10bc93f --- /dev/null +++ b/Packages/makepackages.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +# where to store the packages +TARGET=${PWD}/ZIP +[ ! -d ${TARGET} ] && mkdir ${TARGET} + +# get list of directories with .package files +DIRS="" +cd .. +for i in $(find . -name ".package"); do + DIRS="${DIRS} $(dirname $i)" +done + +for pkg in ${DIRS}; do + echo "----- ${pkg}" + TMPDIR=$(mktemp -d) + NAME="" + + while read LINE; do + IFS=';' read -ra DATA <<< ${LINE} + + # the name of the target .zip archive: + [ "${DATA[0]}" = "N" ] && NAME=${DATA[1]} + + # standard/source files: + if [ "${DATA[0]}" = "F" -o "${DATA[0]}" = "S" ]; then + if [ "${DATA[2]}" = "" ]; then + cp ${pkg}/${DATA[1]} ${TMPDIR}/${DATA[1]^^} + else + cp ${pkg}/${DATA[1]} ${TMPDIR}/${DATA[2]} + fi + fi + + # README file: + if [ "${DATA[0]}" = "R" ]; then + if [ "${DATA[2]}" = "" ]; then + pandoc -f markdown -t plain -s ${pkg}/${DATA[1]} -o ${TMPDIR}/${NAME}.DOC + else + pandoc -f markdown -t plain -s ${pkg}/${DATA[1]} -o ${TMPDIR}/${DATA[2]} + fi + fi + + # FILE_ID.DIZ contents: + [ "${DATA[0]}" = "D" ] && echo "${DATA[1]}" >> ${TMPDIR}/FILE_ID.DIZ + done < ${pkg}/.package + + zip -k -j ${TARGET}/${NAME}.ZIP ${TMPDIR}/* + rm -R ${TMPDIR} +done diff --git a/Quatris/.package b/Quatris/.package index f26e464..c7ed6b7 100644 --- a/Quatris/.package +++ b/Quatris/.package @@ -7,5 +7,5 @@ S;QUATRIS.ASC S;QUATRIS.FOR S;QUATRIS.TXT R;README.md -D;Quatris - a Tetris game for CP/M +D;QUATRIS v2.0 - a Tetris game for CP/M D;configured for VT100 terminals diff --git a/RobotChase/.package b/RobotChase/.package index ba07755..427fdc3 100644 --- a/RobotChase/.package +++ b/RobotChase/.package @@ -6,5 +6,6 @@ S;chase.c S;LICENSE S;Makefile R;README.md -D;Robot Chase for CP/M Z80 Systems +D;ROBOT CHASE - game for CP/M Z80 Systems D;Configured for VT100/ANSI color terminals +D;includes source code diff --git a/Robots/.package b/Robots/.package index cf611f4..601449f 100644 --- a/Robots/.package +++ b/Robots/.package @@ -4,5 +4,5 @@ F;robots.txt S;robots.c S;copying.txt R;README.md -D;Robots - a turn based CP/M game to escape killer robots -D;for VT100 terminals +D;ROBOTS v1.01 - a turn based CP/M game to +D;escape killer robots - for VT100 terminals diff --git a/Rogue/.package b/Rogue/.package index 1f3c417..f0a2e07 100644 --- a/Rogue/.package +++ b/Rogue/.package @@ -3,5 +3,5 @@ F;rogue.com F;ROGUE.DOC S;ROGUE.NOT S;QTERM.PAT -D;Rogue - CP/M port of the classic game -D;for VT100 terminals +D;ROGUE v1.7 - CP/M port of the classic game +D;for VT100 terminals - by DPG diff --git a/Snake/.package b/Snake/.package index 17eb220..caffcb8 100644 --- a/Snake/.package +++ b/Snake/.package @@ -3,5 +3,5 @@ F;SNAKE.COM S;COPYING S;SNAKE.PAS R;README.md -D;Snake - a snake game for CP/M +D;SNAKE v2.2 - a snake game for CP/M D;for VT100/ANSI color terminals diff --git a/Sokoban/.package b/Sokoban/.package index 3c8fe3e..2d35fcc 100644 --- a/Sokoban/.package +++ b/Sokoban/.package @@ -8,5 +8,5 @@ S;readme.org S;readme.v2 S;sokoban.c R;README.md -D;Sokoban - a CP/M version of the classic game -D;for VT100 terminals +D;SOKOBAN v2 - a CP/M version of the classic +D;game - for VT100 terminals diff --git a/Wanderer/.package b/Wanderer/.package index 12dcac9..9cc5231 100644 --- a/Wanderer/.package +++ b/Wanderer/.package @@ -66,7 +66,7 @@ F;screen.060 F;screen.061 F;wanderer.com F;wanderer.doc -D;Wanderer - a CP/M strategy game +D;WANDERER v2.2 - a CP/M strategy game D;collect diamonds and exit the level D;contains 61 levels! D;Configured for VT100 terminals diff --git a/Worm/.package b/Worm/.package index d6f464f..d561296 100644 --- a/Worm/.package +++ b/Worm/.package @@ -1,4 +1,4 @@ N;WORM F;worm.com R;README.md -D;Worm - a snake game for CP/M (VT100) +D;WORM - a snake game for CP/M (VT100) diff --git a/cpmtris/.package b/cpmtris/.package index 027a7e1..8a57501 100644 --- a/cpmtris/.package +++ b/cpmtris/.package @@ -6,5 +6,5 @@ S;Makefile S;rand.z S;README.org R;README.md -D;cpmtris - A Tetris clone for Z80-based CP/M machines -D;configured for VT100 terminals +D;CPMTRIS v1.1 - A Tetris clone for Z80-based +D;CP/M machines - defaults to VT100