diff options
Diffstat (limited to 'vsvs-archive')
-rw-r--r-- | vsvs-archive | 14 |
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 |