diff options
author | Peter Palfrader <peter@palfrader.org> | 2005-10-12 20:32:27 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2005-10-12 20:32:27 +0000 |
commit | 0181d28c643d5e18e4303a104ef0efd04c7592fc (patch) | |
tree | e2262451f67b4712b7e6bdf778b2164bf1022f76 /rvi | |
parent | b36bdb983b84f9b43148fc040b3dcbd11d4f3801 (diff) |
Handle owner stuff
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@28 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'rvi')
-rwxr-xr-x | rvi | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -12,18 +12,20 @@ if ! [ -e "$1,v" ] && ! [ -e "$DN/RCS/$BN,v" ] ; then exit 1 fi +owner=`stat -c "%u:%g" cgi.cfg` rcsdiff -u $1 if [ $? -ne 0 ] ; then rcsdiff $1 > $1.rvi.diff echo echo "Differences detected" echo "run 'co $1' to overwrite with last committed version" - echo "or 'co -l $1; patch $1 < $1.rvi.diff; ci -u $1' to commit" + echo "or 'co -l $1; patch $1 < $1.rvi.diff; ci -u $1' to commit; chown $owner $1" exit 1 fi rm -f $1.rvi.diff co -l $1 +chown $owner $1 if [ $? -ne 0 ] ; then echo "Check out failed." echo "Maybe someone else is currently editing this file." @@ -32,4 +34,4 @@ if [ $? -ne 0 ] ; then fi /usr/bin/vim $1 ci -u $1 - +chown $owner $1 |