summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.orig2
-rw-r--r--src/rvs-core/commit.f.sh3
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.orig b/Makefile.orig
index 00998fc..67ac85f 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)
+$(libdir)/% : out/rvs-core/%
$(INSTALL) -m 755 -o root -g root -d $(dir $@)
$(INSTALL) -m 755 -o root -g root -T $< $@
diff --git a/src/rvs-core/commit.f.sh b/src/rvs-core/commit.f.sh
index cd8070b..ac645cd 100644
--- a/src/rvs-core/commit.f.sh
+++ b/src/rvs-core/commit.f.sh
@@ -19,7 +19,8 @@ file="$1"
hash=`getid $file`
if [ ! -f "$repo/files/$hash" ]; then
- cp "$file" "$repo/files/$hash"
+ #cp "$file" "$repo/files/$hash"
+ install -m 644 -o $USER -g $USER -T "$file" "$repo/files/$hash"
fi
echo "$hash"