summaryrefslogtreecommitdiff
path: root/vsvs-archive
blob: aea12ef24d6b83c7bb40c73a1ccc05f04ed94ad6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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