summaryrefslogtreecommitdiff
path: root/vsvs-archive
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-12-06 17:51:22 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-12-06 17:51:22 +0300
commitc8550c2ba6bc3f80cbad499a6997d0b903580599 (patch)
tree5be0fd2eeafaae659fe476500ddf588d995b9e61 /vsvs-archive
parentfc148d0a1e8fed57f097a0a1e0c6d84641132de7 (diff)
downloadvsvs-c8550c2ba6bc3f80cbad499a6997d0b903580599.tar
vsvs-c8550c2ba6bc3f80cbad499a6997d0b903580599.tar.xz
vsvs-c8550c2ba6bc3f80cbad499a6997d0b903580599.zip
.
Diffstat (limited to 'vsvs-archive')
-rw-r--r--vsvs-archive14
1 files changed, 14 insertions, 0 deletions
diff --git a/vsvs-archive b/vsvs-archive
new file mode 100644
index 0000000..aea12ef
--- /dev/null
+++ b/vsvs-archive
@@ -0,0 +1,14 @@
+#!/bin/bash
+# Current directory will be represented as VSVS archive in output.
+# The directory itself should be locked.
+for e in `ls -a`
+do
+ test "$e" == "." || test "$e" == ".." && continue
+ if test -f "$e"
+ then vsvs-name "$e" < $e
+ else
+ cd "$e"
+ vsvs-archive | vsvs-name "$e"
+ cd ..
+ fi
+done