r7709 - in packages/trunk/game-data-packager: . debian
Jon Dowland
jmtd-guest at alioth.debian.org
Mon Jul 14 20:37:48 UTC 2008
Author: jmtd-guest
Date: 2008-07-14 20:37:48 +0000 (Mon, 14 Jul 2008)
New Revision: 7709
Added:
packages/trunk/game-data-packager/debian/game-data-packager.install
packages/trunk/game-data-packager/game-data-packager
packages/trunk/game-data-packager/game-data-packager.6
Removed:
packages/trunk/game-data-packager/debian/game-package.install
packages/trunk/game-data-packager/game-package
packages/trunk/game-data-packager/game-package.6
Log:
rename game-package, part 2
Copied: packages/trunk/game-data-packager/debian/game-data-packager.install (from rev 7708, packages/trunk/game-data-packager/debian/game-package.install)
===================================================================
--- packages/trunk/game-data-packager/debian/game-data-packager.install (rev 0)
+++ packages/trunk/game-data-packager/debian/game-data-packager.install 2008-07-14 20:37:48 UTC (rev 7709)
@@ -0,0 +1,7 @@
+lib/game-package-shared usr/lib/game-package
+game-package usr/games
+supported/doom2 usr/share/games/game-package/supported
+supported/doom usr/share/games/game-package/supported
+etc/game-package.conf etc
+doom-wad_*_all.deb usr/share/games/game-package
+doom2-wad_*_all.deb usr/share/games/game-package
Property changes on: packages/trunk/game-data-packager/debian/game-data-packager.install
___________________________________________________________________
Name: svn:mergeinfo
+
Deleted: packages/trunk/game-data-packager/debian/game-package.install
===================================================================
--- packages/trunk/game-data-packager/debian/game-package.install 2008-07-14 20:37:01 UTC (rev 7708)
+++ packages/trunk/game-data-packager/debian/game-package.install 2008-07-14 20:37:48 UTC (rev 7709)
@@ -1,7 +0,0 @@
-lib/game-package-shared usr/lib/game-package
-game-package usr/games
-supported/doom2 usr/share/games/game-package/supported
-supported/doom usr/share/games/game-package/supported
-etc/game-package.conf etc
-doom-wad_*_all.deb usr/share/games/game-package
-doom2-wad_*_all.deb usr/share/games/game-package
Copied: packages/trunk/game-data-packager/game-data-packager (from rev 7708, packages/trunk/game-data-packager/game-package)
===================================================================
--- packages/trunk/game-data-packager/game-data-packager (rev 0)
+++ packages/trunk/game-data-packager/game-data-packager 2008-07-14 20:37:48 UTC (rev 7709)
@@ -0,0 +1,144 @@
+#!/bin/sh
+set -e
+set -u
+
+if [ -d ./supported ]; then
+ SUPPORTED=./supported
+else
+ SUPPORTED=/usr/share/games/game-package/supported
+fi
+
+if [ -f ./lib/game-package-shared ]; then
+ . ./lib/game-package-shared
+else
+ . /usr/lib/game-package/game-package-shared
+fi
+
+supported() {
+ echo "the following games are supported:"
+ echo
+ printf "\tname\tdescription\n"
+ printf "\t----\t-----------\n"
+
+ find $SUPPORTED -type f | grep -v '\.svn' | grep -v 'swp$' | sort |
+ while read file; do
+ . $file
+ printf "\t%s\t%s\n" "$SHORTNAME" "$LONGNAME"
+ done
+}
+options() {
+ echo "game-package arguments:"
+ echo " -n not do not install the generated package (requires -d)"
+ echo " -d OUTDIR write the generated .deb(s) to OUTDIR"
+}
+
+usage() {
+ echo "usage:"
+ printf "\tgame-package [game-package-args] game [game-args]\n"
+ echo
+ options
+ echo
+ supported
+ echo
+ echo "run game-package [game] to see game-specific arguments."
+ echo
+}
+
+DEBUG=TRUE
+debug() {
+ if [ -n "$DEBUG" ]; then
+ echo "DEBUG: $*" >&2
+ fi
+}
+warn() {
+ echo "WARNING: $*" >&2
+}
+
+if [ $# -lt 1 ]; then
+ usage >&2
+ exit 1
+fi
+
+# package default settings
+if [ -f "./etc/game-package.conf" ]; then
+ source "./etc/game-package.conf"
+else
+ source "/etc/game-package.conf"
+fi
+OUTDIR=""
+
+# process command line arguments
+
+# defaults
+INSTALL="yes"
+PRESERVE="no"
+
+while [ $# -gt 1 ]; do
+ case "$1" in
+ '-n')
+ INSTALL="no"
+ ;;
+ '-d')
+ PRESERVE="yes"
+ shift
+ if [ $# -lt 2 ]; then
+ echo "missing directory or game argument" >&2
+ usage >&2
+ exit 1
+ fi
+ OUTDIR="$1"
+ ;;
+ '--')
+ break;
+ ;;
+ *) # possibly the game name
+ break;
+ ;;
+ esac
+ shift
+done
+
+if [ "$INSTALL" = "no" -a "$PRESERVE" = "no" ]; then
+ echo "if you specify -n, you must also specify -d." >&2
+ exit 1
+fi
+
+debug "INSTALL=$INSTALL"
+debug "PRESERVE=$PRESERVE"
+
+GAME="$1"
+if [ ! -f "$SUPPORTED/$GAME" ]; then
+ echo "unknown option or game '$GAME'" >&2
+ supported >&2
+ exit 1
+fi
+source "$SUPPORTED/$GAME"
+
+debug "short: $SHORTNAME"
+debug "long: $LONGNAME"
+
+# setup a working directory
+WORKDIR=`mktemp -t -d game-package.XXXXXX`
+debug "WORKDIR=$WORKDIR"
+
+# now the game's handler needs to be executed
+shift
+go "$@"
+
+# TODO: OUTFILE not referenced before here in this file; we're
+# assuming "go" will have defined it.
+
+if [ "$PRESERVE" = "yes" ]; then
+ echo "generated $OUTFILE."
+fi
+
+if [ "$INSTALL" = "yes" ]; then
+ debug "invoking gdebi to install the package"
+ install_deb "$OUTFILE"
+fi
+
+# cleanup
+if [ "$PRESERVE" != "yes" ]; then
+ rm "$OUTFILE"
+fi
+rmdir "$WORKDIR"
Property changes on: packages/trunk/game-data-packager/game-data-packager
___________________________________________________________________
Name: svn:executable
+
Name: svn:mergeinfo
+
Copied: packages/trunk/game-data-packager/game-data-packager.6 (from rev 7708, packages/trunk/game-data-packager/game-package.6)
===================================================================
--- packages/trunk/game-data-packager/game-data-packager.6 (rev 0)
+++ packages/trunk/game-data-packager/game-data-packager.6 2008-07-14 20:37:48 UTC (rev 7709)
@@ -0,0 +1,73 @@
+.\" game-package manpage; based on wtfm_example by branden robinson
+.\" <http://people.debian.org/~branden/talks/wtfm/>
+.\"
+.\" This program is free software; you can redistribute it and/or modify it
+.\" under the terms of the GNU General Public License as published by the
+.\" Free Software Foundation; version 2.
+.\"
+.\" This program is distributed in the hope that it will be useful, but
+.\" WITHOUT ANY WARRANTY; without even the implied warranty of
+.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+.\" Public License for more details.
+.\"
+.\" You should have received a copy of the GNU General Public License along
+.\" with this library; if not, write to the Free Software Foundation, Inc.,
+.\" 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+.\"
+.\" See /usr/share/common-licenses/GPL-2
+.\"
+.de URL
+\\$2 \(laURL: \\$1 \(ra\\$3
+..
+.if \n[.g] .mso www.tmac
+.TH game-package 6 2008-07-14
+.SH NAME
+game\-package \- build a .deb of game data
+.
+.SH SYNOPSIS
+.B game\-package
+[
+.I -d
+out-directory [
+.I -n
+] ]
+.I game
+[
+.I game\-options
+]
+.SH DESCRIPTION
+Many open-source games require game data which is licensed
+incompatibly with the Debian Free Software Guidelines.
+.B game\-package
+is a tool designed to help you locally assemble Debian packages containing
+such game data from CD-ROMs, the Internet or elsewhere.
+.B game\-package
+uses
+.B gdebi
+to install the generated Debian package(s) (unless you tell it not to).
+.SH OPTIONS
+.TP
+.B \-d out-directory
+writes the generated Debian package to the specified directory.
+.TP
+.B \-n
+Do not attempt to install the generated Debian package. This option must be
+used in conjunction with
+.B \-d.
+.TP
+.B game
+The game being packaged. Running
+.B game\-package
+without arguments will display a list of valid games. Running
+.B game\-package
+with just the game and no further arguments will display a list
+of valid options for that game.
+.SH SEE ALSO
+\fIgdebi\fP(1)
+.SH AUTHOR
+Copyright \(co 2008 Jon Dowland \fI<jon at alcopop.org>\fP.
+.br
+Thanks to Branden Robinson for his \(oqWrite the Fine Manual\(cq presentation,
+once found at
+.URL "http://people.debian.org/~branden/talks/wtfm/"
+.
Property changes on: packages/trunk/game-data-packager/game-data-packager.6
___________________________________________________________________
Name: svn:mergeinfo
+
Deleted: packages/trunk/game-data-packager/game-package
===================================================================
--- packages/trunk/game-data-packager/game-package 2008-07-14 20:37:01 UTC (rev 7708)
+++ packages/trunk/game-data-packager/game-package 2008-07-14 20:37:48 UTC (rev 7709)
@@ -1,144 +0,0 @@
-#!/bin/sh
-set -e
-set -u
-
-if [ -d ./supported ]; then
- SUPPORTED=./supported
-else
- SUPPORTED=/usr/share/games/game-package/supported
-fi
-
-if [ -f ./lib/game-package-shared ]; then
- . ./lib/game-package-shared
-else
- . /usr/lib/game-package/game-package-shared
-fi
-
-supported() {
- echo "the following games are supported:"
- echo
- printf "\tname\tdescription\n"
- printf "\t----\t-----------\n"
-
- find $SUPPORTED -type f | grep -v '\.svn' | grep -v 'swp$' | sort |
- while read file; do
- . $file
- printf "\t%s\t%s\n" "$SHORTNAME" "$LONGNAME"
- done
-}
-options() {
- echo "game-package arguments:"
- echo " -n not do not install the generated package (requires -d)"
- echo " -d OUTDIR write the generated .deb(s) to OUTDIR"
-}
-
-usage() {
- echo "usage:"
- printf "\tgame-package [game-package-args] game [game-args]\n"
- echo
- options
- echo
- supported
- echo
- echo "run game-package [game] to see game-specific arguments."
- echo
-}
-
-DEBUG=TRUE
-debug() {
- if [ -n "$DEBUG" ]; then
- echo "DEBUG: $*" >&2
- fi
-}
-warn() {
- echo "WARNING: $*" >&2
-}
-
-if [ $# -lt 1 ]; then
- usage >&2
- exit 1
-fi
-
-# package default settings
-if [ -f "./etc/game-package.conf" ]; then
- source "./etc/game-package.conf"
-else
- source "/etc/game-package.conf"
-fi
-OUTDIR=""
-
-# process command line arguments
-
-# defaults
-INSTALL="yes"
-PRESERVE="no"
-
-while [ $# -gt 1 ]; do
- case "$1" in
- '-n')
- INSTALL="no"
- ;;
- '-d')
- PRESERVE="yes"
- shift
- if [ $# -lt 2 ]; then
- echo "missing directory or game argument" >&2
- usage >&2
- exit 1
- fi
- OUTDIR="$1"
- ;;
- '--')
- break;
- ;;
- *) # possibly the game name
- break;
- ;;
- esac
- shift
-done
-
-if [ "$INSTALL" = "no" -a "$PRESERVE" = "no" ]; then
- echo "if you specify -n, you must also specify -d." >&2
- exit 1
-fi
-
-debug "INSTALL=$INSTALL"
-debug "PRESERVE=$PRESERVE"
-
-GAME="$1"
-if [ ! -f "$SUPPORTED/$GAME" ]; then
- echo "unknown option or game '$GAME'" >&2
- supported >&2
- exit 1
-fi
-source "$SUPPORTED/$GAME"
-
-debug "short: $SHORTNAME"
-debug "long: $LONGNAME"
-
-# setup a working directory
-WORKDIR=`mktemp -t -d game-package.XXXXXX`
-debug "WORKDIR=$WORKDIR"
-
-# now the game's handler needs to be executed
-shift
-go "$@"
-
-# TODO: OUTFILE not referenced before here in this file; we're
-# assuming "go" will have defined it.
-
-if [ "$PRESERVE" = "yes" ]; then
- echo "generated $OUTFILE."
-fi
-
-if [ "$INSTALL" = "yes" ]; then
- debug "invoking gdebi to install the package"
- install_deb "$OUTFILE"
-fi
-
-# cleanup
-if [ "$PRESERVE" != "yes" ]; then
- rm "$OUTFILE"
-fi
-rmdir "$WORKDIR"
Deleted: packages/trunk/game-data-packager/game-package.6
===================================================================
--- packages/trunk/game-data-packager/game-package.6 2008-07-14 20:37:01 UTC (rev 7708)
+++ packages/trunk/game-data-packager/game-package.6 2008-07-14 20:37:48 UTC (rev 7709)
@@ -1,73 +0,0 @@
-.\" game-package manpage; based on wtfm_example by branden robinson
-.\" <http://people.debian.org/~branden/talks/wtfm/>
-.\"
-.\" This program is free software; you can redistribute it and/or modify it
-.\" under the terms of the GNU General Public License as published by the
-.\" Free Software Foundation; version 2.
-.\"
-.\" This program is distributed in the hope that it will be useful, but
-.\" WITHOUT ANY WARRANTY; without even the implied warranty of
-.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
-.\" Public License for more details.
-.\"
-.\" You should have received a copy of the GNU General Public License along
-.\" with this library; if not, write to the Free Software Foundation, Inc.,
-.\" 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
-.\"
-.\" See /usr/share/common-licenses/GPL-2
-.\"
-.de URL
-\\$2 \(laURL: \\$1 \(ra\\$3
-..
-.if \n[.g] .mso www.tmac
-.TH game-package 6 2008-07-14
-.SH NAME
-game\-package \- build a .deb of game data
-.
-.SH SYNOPSIS
-.B game\-package
-[
-.I -d
-out-directory [
-.I -n
-] ]
-.I game
-[
-.I game\-options
-]
-.SH DESCRIPTION
-Many open-source games require game data which is licensed
-incompatibly with the Debian Free Software Guidelines.
-.B game\-package
-is a tool designed to help you locally assemble Debian packages containing
-such game data from CD-ROMs, the Internet or elsewhere.
-.B game\-package
-uses
-.B gdebi
-to install the generated Debian package(s) (unless you tell it not to).
-.SH OPTIONS
-.TP
-.B \-d out-directory
-writes the generated Debian package to the specified directory.
-.TP
-.B \-n
-Do not attempt to install the generated Debian package. This option must be
-used in conjunction with
-.B \-d.
-.TP
-.B game
-The game being packaged. Running
-.B game\-package
-without arguments will display a list of valid games. Running
-.B game\-package
-with just the game and no further arguments will display a list
-of valid options for that game.
-.SH SEE ALSO
-\fIgdebi\fP(1)
-.SH AUTHOR
-Copyright \(co 2008 Jon Dowland \fI<jon at alcopop.org>\fP.
-.br
-Thanks to Branden Robinson for his \(oqWrite the Fine Manual\(cq presentation,
-once found at
-.URL "http://people.debian.org/~branden/talks/wtfm/"
-.
More information about the Pkg-games-commits
mailing list