#!/bin/sh case $# in 1) rel=$1 ;; *) echo "usage: $0 " ; exit 1 ;; esac root="https://svn.chezphil.org/decimail" svn mv -m"Fixup ${rel} directory hierarchy" \ "${root}/tags/releases/trunk" "${root}/tags/releases/${rel}" svn cp -m"Tag version ${rel}" "${root}/trunk" "${root}/tags/releases/${rel}" cd /var/tmp svn co "${root}/tags/releases/${rel}" cd ${rel} rev=`svn info | awk '/^Revision:/ {print $2}'` svn propset svn:externals "libpbe -r ${rev} http://svn.chezphil.org/libpbe/trunk/" . svn commit -m"Set libpbe externals revision" cd .. rm -r ${rel}