#!/bin/sh
#
# $Id: build-dist.sh,v 1.1 2001/08/12 03:59:21 mdb Exp $
#
# Builds a distribution archive. This should be run from the top-level
# project directory and it will place the distribution archive into the
# directory identified by $DISTDIR.

USAGE="Usage: $0 distname (eg. viztool-1.4)"
DISTDIR=dist

if [ -z "$1" ]; then
    echo $USAGE
    exit -1
else
    TARGET=$1
fi

# build our excludes file
cat > .excludes <<EOF
build-dist.sh
CVS
dist
lib/*.jar
code
.excludes
EOF

# create our distribution directory
mkdir /tmp/$TARGET

# temporarily move the distribution files into temp so that we can put
# them into a properly named directory
tar --exclude-from=.excludes -cf - * | tar -C /tmp/$TARGET -xf -

# now build the actual archive file
tar -C /tmp -czf $DISTDIR/$TARGET.tgz $TARGET

# and clean up after ourselves
rm -rf /tmp/$TARGET
rm .excludes

#!/bin/sh
#
# $Id: build-dist.sh,v 1.2 2001/08/12 04:21:13 mdb Exp $
#
# Builds a distribution archive. This should be run from the top-level
# project directory and it will place the distribution archive into the
# directory identified by $DISTDIR.

USAGE="Usage: $0 distname (eg. viztool-1.4)"
DISTDIR=dist

if [ -z "$1" ]; then
    echo $USAGE
    exit -1
else
    TARGET=$1
fi

# build our excludes file
cat > .excludes <<EOF
build-dist.sh
CVS
dist
lib/*.jar
code
.excludes
.cvsignore
EOF

# create our distribution directory
mkdir /tmp/$TARGET

# temporarily move the distribution files into temp so that we can put
# them into a properly named directory
tar --exclude-from=.excludes -cf - * | tar -C /tmp/$TARGET -xf -

# now build the actual archive file
tar -C /tmp -czf $DISTDIR/$TARGET.tgz $TARGET

# and clean up after ourselves
rm -rf /tmp/$TARGET
rm .excludes

Exclude .cvsignore files from the distribution.
Exclude .cvsignore files from the distribution.


git-svn-id: 64ebf368729f38804935acb7146e017e0f909c6b@248 6335cc39-0255-0410-8fd6-9bcaacd3b74c
