Skip to content

Commit

Permalink
support for .deb
Browse files Browse the repository at this point in the history
  • Loading branch information
pace committed Jun 25, 2011
1 parent 6876453 commit c4ad344
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 20 deletions.
4 changes: 2 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
raceintospace (1.0alpha3-1) unstable; urgency=low
raceintospace (1.0rc1-1) unstable; urgency=low

* Initial release

-- Pace Willisson <[email protected]> Thu, 23 Jun 2011 09:33:30 -0400
-- Pace Willisson <[email protected]> Fri, 24 Jun 2011 20:13:34 -0400
64 changes: 46 additions & 18 deletions make-tarball
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#! /bin/sh
#! /bin/sh -e

# this makes a tarball of the sources plus the media files

# you probably want to be in a fresh directory (separate from the sources)
# when you run it
# the files for race and gamedat come from the sourceforge server,
# so won't include any uncommitted changes you have locally

# you need to be in a directory with subdirectories race gamedat and avdata

if [ $# != 1 ]
then
Expand All @@ -13,10 +15,39 @@ fi

rel="$1"

rm -rf TMP
mkdir TMP
if [ ! -d race -o ! -d gamedat -o ! -d avdata ]
then
echo "bad directory structure - see os_linux/README"
exit 1
fi

outname=raceintospace-${rel}.tar.gz
if [ -f ${outname} ]
then
echo -n "ok to remove and recreate ${outname}? (y/n) "
read x
if [ "$x" != "y" ]
then
echo "aborted"
exit 1
fi
fi

if [ -d TMP.build ]
then
echo -n "ok to remove subdirectory TMP.build? (y/n) "
read x
if [ "$x" != "y" ]
then
echo "aborted"
exit 1
fi
fi

rm -rf TMP.build
mkdir TMP.build

cd TMP
cd TMP.build

if [ -z "$CVSROOT" ]
then
Expand All @@ -29,19 +60,16 @@ cvs -z8 export -D now gamedat

dir=raceintospace-${rel}
mv race ${dir}
cd ${dir}
mv ../gamedat gamedata

# you need to already have done
# git clone \
# ssh://[email protected]/gitroot/raceintospace/avdata

(cd ~/race/avdata && git archive --format=tar HEAD) | tar -xf -
mv gamedat ${dir}/gamedata

aclocal -I m4
autoconf
rm -rf autom4te.cache
(cd ../avdata && git archive --format=tar HEAD) | tar -C ${dir} -xf -

cd ..
tar -czf ../${dir}.tar.gz ${dir}
(
cd ${dir}
aclocal -I m4
autoconf
rm -rf autom4te.cache
)

tar -czf ../${outname} ${dir}
42 changes: 42 additions & 0 deletions os_linux/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
To set up the developement directory structure:

$ mkdir race
$ cd race
$ cvs -d:ext:raceintospace.cvs.sourceforge.net:/cvsroot/raceintospace co race
$ cvs -d:ext:raceintospace.cvs.sourceforge.net:/cvsroot/raceintospace co gamedat
$ git clone ssh://raceintospace.git.sourceforge.net/gitroot/raceintospace/avdata

================================================================
To make a distribution tarball:

cd race

(now you're in the development directory, and have race gamedat and
avdata subdirectories)

$ ./race/make-tarball RELEASE-NUBMER

(for example ./race/make-tarball 1.0rc1)

this results in raceintospace-REL.tar.gz

Note that make-tarball gets the cvs data

================================================================
To make a .deb:
(watch out for switching between underlines and dashes in these names)

cd race
mkdir build
cd build
cp ../raceintospace-REL.tar.gz raceintospace_REL.orig.tar.gz
tar xf raceintospace_REL.orig.tar.gz
cd raceintospace-REL
debuild

create the .deb in the parent directory

================================================================

there are some remnants in the Makefile for making rpm files, but they
probably don't work any more

0 comments on commit c4ad344

Please sign in to comment.