#!/bin/sh -e tag=$1 if test -z "$tag"; then echo "Usage: $0 version" echo " from an svn working copy of the project to be tagged." exit 1 fi branch=`svn info | sed -n '/^URL/{s/^URL: //g;p}'` root=`echo ${branch} | sed 's,/trunk,,;s,/branches/.*,,'` src=${branch} dest=${root}/tags/$1 echo Tagging at $tag: echo "+ svn cp ${src} \\" echo " ${dest}" echo '[press return]' read a exec svn cp -m "Tag release ${tag}." ${src} ${dest}