root/utils/build-tarball-from-svn-tag
| Revision 1000, 324 bytes (checked in by dom, 1 year ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | if [ -z $1 ]; then |
| 6 | echo "Usage: $0 [tag]" |
| 7 | exit 1 |
| 8 | fi |
| 9 | |
| 10 | REPO=https://urchin.earth.li/svn/openguides |
| 11 | WORKDIR=`mktemp -d` |
| 12 | DSTDIR=/home/dom/openguides-official |
| 13 | cd $WORKDIR |
| 14 | svn co https://urchin.earth.li/svn/openguides/tags/$1 |
| 15 | cd $1 |
| 16 | perl Build.PL |
| 17 | ./Build dist |
| 18 | mv -i *.tar.gz $DSTDIR |
| 19 | cd / |
| 20 | rm -rf $WORKDIR |
Note: See TracBrowser for help on using the browser.
