[Scummvm-cvs-logs] CVS: scummvm/debian changelog.cvs,NONE,1.1 changelog.debian,NONE,1.1 prepare,NONE,1.1 scummvm.dirs,NONE,1.1 scummvm.sh,NONE,1.1 changelog,1.3,NONE control,1.3,NONE copyright,1.3,NONE dirs,1.2,NONE rules,1.3,NONE scummvm.docs,1.1,NONE scummvm.files,1.1,NONE watch.ex,1.1,NONE

Bastien Nocera hadess at users.sourceforge.net
Fri May 10 10:29:02 CEST 2002


Update of /cvsroot/scummvm/scummvm/debian
In directory usw-pr-cvs1:/tmp/cvs-serv18350/debian

Added Files:
	changelog.cvs changelog.debian prepare scummvm.dirs scummvm.sh 
Removed Files:
	changelog control copyright dirs rules scummvm.docs 
	scummvm.files watch.ex 
Log Message:
- removed the old debian files, added new more correct ones, can be used to generate packages from releases and CVS. Just run the debian/prepare script beforehand. Do NOT modify the debian/changelog.debian file.


--- NEW FILE: changelog.cvs ---
scummvm (@VERSION at -1) unstable; urgency=low

  * This is a CVS snapshot, don't file bugs on the Debian BTS if you use
    this package. Instead mail me directly.

 -- Bastien Nocera <hadess at hadess.net>  Fri,  5 Apr 2002 16:37:09 +0100


--- NEW FILE: changelog.debian ---
scummvm (0.1.0b-2) unstable; urgency=low

  * Moved the scummvm main bin under /usr/lib, the wrapper script under
    /usr/games
  * Fixed bug in the script that made it not work if the path was relative

 -- Bastien Nocera <hadess at hadess.net>  Wed, 10 Apr 2002 19:27:05 +0100

scummvm (0.1.0b-1) unstable; urgency=low

  * Initial Release.
  * Packaged made under the influence of beer at GUAD3C in Sevilla ! Arriba !
    Ole !

 -- Bastien Nocera <hadess at hadess.net>  Fri,  5 Apr 2002 16:37:09 +0100


--- NEW FILE: prepare ---
#!/bin/sh

if [ ! -e debian/rules ] ; then
	echo "Run from the top-level source directory as debian/prepare"
	exit 1
fi

if [ -d CVS/ ] ; then
	TODATE=`date +%Y%m%d`
	NEXT_VERSION=`grep SCUMMVM_VERSION scumm.h | sed 's,\#define\ SCUMMVM_VERSION\ \",,gi' | sed 's,\ devel\",,gi'`
	cat debian/changelog.cvs | sed s/@VERSION@/$NEXT_VERSION.cvs$TODATE/g \
	> debian/changelog.tmp && mv debian/changelog.tmp debian/changelog
	exit 0
else
	cp debian/changelog.debian debian/changelog
fi

--- NEW FILE: scummvm.dirs ---
usr/games
usr/lib/scummvm
usr/share/man/man6

--- NEW FILE: scummvm.sh ---
#!/bin/sh

# Uncomment this to debug the script
# set -x

DIR=$1

help()
{
	echo "Scummvm wrapper by Bastien Nocera <hadess at hadess.net>"
	echo "Usage:"
	echo "         `basename $0` [dir|file]"
	echo "Options:"
	echo "         dir   path to a directory containing a supported game"
	echo "         file  one of the file in a directory containing a supported game"
	echo
	exit
}

if [ $# -ne 1 ] ; then help ; fi
if [ $1 == "-h" ] ; then help ; fi
if [ ! -d $1 ] ; then\
	if [ -e $1 ] ; then
		DIR=`dirname $1`
	else
		help
	fi
fi

# Here we check for which game we're gonna be running
if [ -e $DIR/*.000 ] ; then
	GAME=`basename $DIR/*.000 | sed 's,.000$,,g' | grep -v '*'`
	if [ x$GAME = 'x' ] ; then
		echo "*** Game not found ***"
		help
	fi
fi


# Check for the game, see if it's supported
if [ -z $GAME ] ; then
	echo "*** Unsupported game ***"
	help
fi

# Go to the game's dir
cd $DIR

# Launch scummvm with the game name
/usr/lib/scummvm/scummvm $GAME


--- changelog DELETED ---

--- control DELETED ---

--- copyright DELETED ---

--- dirs DELETED ---

--- rules DELETED ---

--- scummvm.docs DELETED ---

--- scummvm.files DELETED ---

--- watch.ex DELETED ---





More information about the Scummvm-git-logs mailing list