From 45bf3873f34c29ca57bdc0a4811a12f89884a022 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Fri, 11 Jan 2013 22:01:45 +0000 Subject: Only build the snapshot, buildbot will upload --- (limited to 'commands') diff --git a/commands/snapshot b/commands/snapshot new file mode 100755 index 0000000..c8200ca --- /dev/null +++ b/commands/snapshot @@ -0,0 +1,50 @@ +#!/bin/sh + +commandsdir=`dirname "$0"` +destdir=`dirname "$commandsdir"` +filename=snapshot.tar +rootdir=sugar-snapshot + +mkdir -p $destdir +ln -s `pwd` $destdir/$rootdir + +cd $destdir + +tar cvhf $filename \ + $rootdir/config \ + $rootdir/devbot \ + $rootdir/install \ + $rootdir/commands/check-system \ + $rootdir/commands/common.py \ + $rootdir/commands/bashrc \ + $rootdir/commands/run \ + $rootdir/commands/shell + +rm $rootdir +mkdir $rootdir + +runsugarscript=$rootdir/run-sugar.sh + +cat > $runsugarscript << "EOF" +#!/bin/sh + +commands/run +EOF + +chmod +x $runsugarscript + +runshellscript=$rootdir/run-shell.sh + +cat > $runshellscript << "EOF" +#!/bin/sh + +commands/shell +EOF + +chmod +x $runshellscript + +tar rvh -f $filename $runshellscript $runsugarscript + +rm -rf $rootdir + +xz --verbose $filename -- cgit v0.9.1