Ubuntu Pastebin

Paste from cjwatson at Fri, 16 Jan 2015 18:03:32 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ubuntu-archive@snakefruit:~$ cat cu2d/run.sh
#! /bin/sh
set -eu

LOCK_FILE="/tmp/.cu2d.lock"
if ! lockfile -r0 $LOCK_FILE; then
   exit 1
fi
trap "rm -f $LOCK_FILE" EXIT HUP INT QUIT TERM
touch $LOCK_FILE

echo "Latest update: " `date`
CWD=$HOME/cu2d
BINDIR=$CWD/cupstream2distro/
INCOMING=$CWD/incoming
mkdir -p $INCOMING
cd $INCOMING

bzr pull -q -d "$BINDIR"

export CU2D_RSYNCSVR=91.189.92.54
export PYTHONPATH="$HOME/python"
$BINDIR/copy2distro
Download as text