From 3da845cfc718a09b0050723b8bb49b0b4b118d04 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 16 Jul 2009 14:12:53 -0400 Subject: rename source to rvs (`bzr mv' is fail!) restructure configure and Makefile.orig --- src/rvs-core/commit.d.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/rvs-core/commit.d.sh (limited to 'src/rvs-core/commit.d.sh') diff --git a/src/rvs-core/commit.d.sh b/src/rvs-core/commit.d.sh new file mode 100644 index 0000000..5a47614 --- /dev/null +++ b/src/rvs-core/commit.d.sh @@ -0,0 +1,29 @@ +#!$$SHELL$$ +# abomination module:rvs:commit:d +name='rvs commit.d' +ver='0.6.0' +usage='[OPTIONS] DIRECTORY' +# 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 . + +source "`rvs -d`/lib/stdio" +source "`rvs -d`/lib/rvsdb" + +# commit.d DIRNAME +dir="$1" + +tmp=`tempfile` +loginit "$tmp" +for file in $dir; do + hash=`commit "$dir/$file"` + echo "$file:$hash" >> "$tmp" +done + +rvs commit.f "$tmp" +rm "$tmp" + -- cgit v1.2.3-54-g00ecf