summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2009-07-24 13:54:37 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:12 -0600
commitb2ff17c1c19c394b76b6f7ad019215361190d1c9 (patch)
treecaca0334f5ab8b325df267353120f32bb18c4c09
parentd198ab0c08ca44c72664eb83b844255d922cbcdb (diff)
Well, previously I had added the file `src/rvs-core/repo.sh', but forgot to `bzr add' it.
Anyway the sed script I ran to update all source files caused an infinate loop in repo.sh So this is the original version. If you want to see what the version created by the sed script looked like, run 's/$repo/`rvs repo`/'
-rw-r--r--src/rvs-core/repo.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/rvs-core/repo.sh b/src/rvs-core/repo.sh
new file mode 100644
index 0000000..1db22c9
--- /dev/null
+++ b/src/rvs-core/repo.sh
@@ -0,0 +1,29 @@
+#!$$SHELL$$
+# abomination rvs init
+name='rvs repo'
+ver='0.6.3'
+usage='[OPTIONS]'
+# 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 "$RVSDIR/lib/stdio"
+
+repo='.rvs'
+pwd=`pwd`
+
+while [ "$pwd" != "`pwd`" ] && [ ! -e "`pwd`/$repo" ]; do
+ pwd=`pwd`
+ cd ..
+done
+
+if [ -e "`pwd`/$repo" ]; then
+ echo "`pwd`/$repo"
+else
+ fatal 'no rvs repository found'
+fi
+