Index: trunk/debs/update.sh |
— | — | @@ -0,0 +1,27 @@ |
| 2 | +#!/bin/bash |
| 3 | + |
| 4 | +set -e |
| 5 | + |
| 6 | +if [ -z $1 ];then |
| 7 | + echo "Usage: update.sh <package>" |
| 8 | +fi |
| 9 | + |
| 10 | +thisdir=`dirname $0` |
| 11 | +package=$1 |
| 12 | + |
| 13 | +cd $thisdir |
| 14 | +svn up $package |
| 15 | +cd $package |
| 16 | + |
| 17 | +echo "Building package..." |
| 18 | +dpkg-buildpackage -rfakeroot |
| 19 | +echo "Publishing..." |
| 20 | +cd .. |
| 21 | +tar -c $package''_* | ssh -A root@khaldun.wikimedia.org " |
| 22 | + test -e /srv/wikimedia/pool/main/$package || mkdir /srv/wikimedia/pool/main/$package |
| 23 | + tar -C /srv/wikimedia/pool/main/$package -x && \ |
| 24 | + /root/update-repository 2>/dev/null && \ |
| 25 | + echo Success || \ |
| 26 | + echo update-repository failed |
| 27 | + " |
| 28 | + |
Property changes on: trunk/debs/update.sh |
___________________________________________________________________ |
Added: svn:executable |
1 | 29 | + * |