Nix old scripts. Everything's handled via Ant or Ivy or Maven these days.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2851 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $Id: build-dist.sh,v 1.2 2001/08/13 23:24:42 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. samskivert-1.4)"
|
||||
DISTDIR=dist
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo $USAGE
|
||||
exit -1
|
||||
else
|
||||
TARGET=$1
|
||||
fi
|
||||
|
||||
# build our excludes file
|
||||
cat > .excludes <<EOF
|
||||
bin
|
||||
CVS
|
||||
dist
|
||||
lib/*.jar
|
||||
code
|
||||
docs
|
||||
.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
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Runs built code
|
||||
|
||||
ROOT=`dirname $0`
|
||||
ROOT=`cd $ROOT/.. ; pwd`
|
||||
|
||||
CLASSPATH="$JAVA_HOME/jre/lib/rt.jar"
|
||||
for JAR in $ROOT/dist/lib/*.jar; do
|
||||
CLASSPATH=$CLASSPATH:$JAR
|
||||
done
|
||||
CLASSPATH=$ROOT/dist/classes:$ROOT:$CLASSPATH
|
||||
export CLASSPATH
|
||||
|
||||
eval java $JAVA_ARGS "$@"
|
||||
Reference in New Issue
Block a user