Update of /cvsroot/data-pluginfile/data-pluginfiles/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16508
Added Files:
build_tar_gz.sh
Log Message:
- first version of build script
--- NEW FILE: build_tar_gz.sh ---
#!/bin/bash
## ----------------------------------------------------------------------------
if [ -z "$1" ]; then
echo "Please specify a release version (e.g 0.1)"
exit 1;
fi
# setup env vars
VERSION=$1
BASENAME="data-pluginfile"
MODNAME="data-pluginfiles"
RELEASE="$BASENAME-$VERSION"
echo "Building package $RELEASE..."
# remove any leftover old directories and create a new one
if [ -d "$RELEASE" ]; then
rm -rf $RELEASE
fi
if [ -f "$RELEASE.tar.gz" ]; then
rm -f $RELEASE.tar.gz
fi
mkdir $RELEASE
# export a copy of the module to a temporary directory
TMPDIR=`mktemp -d build_tar_gz.XXXXXX`
cd $TMPDIR
cvs -q -d:ext:and...@cv...:/cvsroot/$BASENAME export -Dtomorrow $MODNAME
cd ../
MODDIR="$TMPDIR/$MODNAME"
# copy the files we need for the release
cp $MODDIR/README $MODDIR/Makefile.PL $RELEASE
cp -R $MODDIR/t $RELEASE
cp -R $MODDIR/Data $RELEASE
# make the tar
tar -zcf $RELEASE.tar.gz $RELEASE
# cleanup
rm -rf $RELEASE
rm -rf $TMPDIR
echo "...done"
## ----------------------------------------------------------------------------
|