summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2009-07-16 23:20:31 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:11 -0600
commitf65a0644e57c6c09f6fe9a8cf496ec497d0d0a27 (patch)
treef347ec4e2ebe66ad233cf0df51f136b1271e106d
parent0a85f2125ca6505abb8e78772226ed42fb331099 (diff)
Fix a thousand different things.
It's amazing what can break when you haven't tried running it since refactoring There is a bug in the Makefile. I'm filing a real bug report.
-rw-r--r--Makefile.orig2
-rw-r--r--src/rvs-core/commit.sh14
2 files changed, 8 insertions, 8 deletions
diff --git a/Makefile.orig b/Makefile.orig
index 67ac85f..00998fc 100644
--- a/Makefile.orig
+++ b/Makefile.orig
@@ -68,7 +68,7 @@ out/% : $(sourcedir)/src/%.sh $(PRE)
$(prefix)/$(bindir)/% : out/%
$(INSTALL) -m 755 -o root -g root -T $< $@
-$(libdir)/% : out/rvs-core/%
+$(libdir)/% : out/rvs-core/% $(libdir)
$(INSTALL) -m 755 -o root -g root -d $(dir $@)
$(INSTALL) -m 755 -o root -g root -T $< $@
diff --git a/src/rvs-core/commit.sh b/src/rvs-core/commit.sh
index 2f120e0..189c8b9 100644
--- a/src/rvs-core/commit.sh
+++ b/src/rvs-core/commit.sh
@@ -23,13 +23,13 @@ fi
if [ ! -e $file]; then error "file \`$file' does not exist";
# START file type list
-elif [ -l $file ]; type='l'; # symbolic link
-elif [ -b $file ]; type='b'; # block (buffered) special
-elif [ -c $file ]; type='c'; # character (unbuffered) special
-elif [ -d $file ]; type='d'; # directory
-elif [ -p $file ]; type='p'; # named pipe (FIFO)
-elif [ -f $file ]; type='f'; # regular file
-elif [ -s $file ]; type='s'; # socket
+elif [ -l $file ]; then type='l'; # symbolic link
+elif [ -b $file ]; then type='b'; # block (buffered) special
+elif [ -c $file ]; then type='c'; # character (unbuffered) special
+elif [ -d $file ]; then type='d'; # directory
+elif [ -p $file ]; then type='p'; # named pipe (FIFO)
+elif [ -f $file ]; then type='f'; # regular file
+elif [ -s $file ]; then type='s'; # socket
#elif [ -D $file ]; type='D'; # door (Solaris only)
# END file type list
else error "could not identify file type of \`$file'"