summaryrefslogtreecommitdiff
path: root/plugins/users/commit.sh
blob: f272013e748ae1e6e64ba26147d976c2eac57db3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!@SHELL@
name='rvs users commit'
ver='0.7.2'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.

source "$libexecdir/lib/stdio"

ret=`$RVS repo-0.7beta/commit $@`
if [ -f "$REPO/user" ]; then
	cp "$REPO/user" "$REPO/repo/$ret"
	echo "$ret"
else
	error 'you must be logged in to commit files'
fi