2011-12-05 02:09:29 -08:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
export mgwdir=`dirname $0`
|
|
|
|
. $mgwdir/config.sh || exit 1
|
|
|
|
|
|
|
|
jhtarballdir=$mgwbuildroot/tarballs
|
|
|
|
jhsourcedir=$mgwbuilddir/source
|
2012-07-29 19:10:44 -07:00
|
|
|
destname=medit-deps-sources-`date +%Y%m%d`
|
|
|
|
destdir=$mgwbuildroot/dist-$mgwconfig/$destname
|
2011-12-05 02:09:29 -08:00
|
|
|
|
|
|
|
do_or_die() {
|
|
|
|
echo "$@"
|
|
|
|
"$@" || exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
cd $mgwbuildroot
|
|
|
|
|
2012-07-29 19:10:44 -07:00
|
|
|
do_or_die rm -fr $destdir $destdir.zip
|
|
|
|
do_or_die mkdir -p $destdir
|
2011-12-05 02:09:29 -08:00
|
|
|
do_or_die cp -lfR $jhtarballdir/* $destdir/
|
|
|
|
|
2012-07-29 19:10:44 -07:00
|
|
|
do_or_die mkdir -p $destdir/tmp
|
2011-12-05 02:09:29 -08:00
|
|
|
for proj in pycairo pygobject pygtk; do
|
|
|
|
cd $destdir/tmp || exit 1
|
|
|
|
hg clone $jhsourcedir/$proj
|
|
|
|
tar cjf medit-$proj.tar.bz2 $proj
|
|
|
|
mv medit-$proj.tar.bz2 ..
|
|
|
|
done
|
|
|
|
do_or_die cd $destdir
|
2011-12-05 02:41:07 -08:00
|
|
|
do_or_die rm -fr $destdir/tmp
|
2011-12-05 02:09:29 -08:00
|
|
|
do_or_die cp -lfR $mgwdir $destdir/gtk-win
|
|
|
|
do_or_die mv $destdir/gtk-win/extra/readme-medit-deps.txt $destdir/readme.txt
|
|
|
|
|
2011-12-05 02:41:07 -08:00
|
|
|
do_or_die cd $destdir/..
|
2012-07-29 19:10:44 -07:00
|
|
|
do_or_die zip -r $destname.zip $destname
|
2011-12-05 02:41:07 -08:00
|
|
|
do_or_die rm -fr $destname
|