make-tarball 718 Bytes
Newer Older
1
#!/bin/sh
Mike Hibler's avatar
Mike Hibler committed
2 3
#
# EMULAB-COPYRIGHT
4
# Copyright (c) 2006, 2007 University of Utah and the Flux Group.
Mike Hibler's avatar
Mike Hibler committed
5 6
# All rights reserved.
#
7

8
files="pelab/auto-pelab.ns pelab/common-env.sh pelab/init-elabnodes.pl pelab/run-sanity.sh pelab/dbmonitor pelab/libnetmon pelab/magent pelab/monitor pelab/pelabdb.pwd pelab/stub pelab/iperfd"
9 10 11 12 13 14 15 16 17 18 19 20 21 22

if [ $# != 1 ]; then
    echo "usage: $0 tarball-path"
    exit 1
fi

path=$1

if [ ! -d ../pelab ]; then
   echo "should be run from 'pelab' subdir"
   exit 1
fi

echo "##### cleaning up a little"
23 24
rm -f magent/*.o stub/*.o UDP/UdpServerDir/*.o
strip magent/magent stub/stubd libnetmon/netmonup magent/UDP/UdpServerDir/UdpServer
25 26 27

echo "##### creating tarball $path from .."
tar czf $path -C .. $files