Index: /trunk/locker/sbin/parallel-find.pl
===================================================================
--- /trunk/locker/sbin/parallel-find.pl	(revision 1383)
+++ /trunk/locker/sbin/parallel-find.pl	(revision 1384)
@@ -55,6 +55,8 @@
 sub version ($) {
     my $dirname = shift;
-    open my $h, "$dirname/.scripts/version";
-    return (<$h>)[-1];
+    $uid = stat($dirname)->uid;
+    open my $h, "sudo -u #$uid git describe --tags 2>/dev/null |";
+    chomp($val = <$h>);
+    return $val;
 }
 
@@ -67,8 +69,8 @@
     while (my $f = <$files>) {
         chomp $f;
-        my $old_style;
-        $old_style = ($f =~ s!/\.scripts-version$!!);
-        if (! $old_style) {
-            $f =~ s!/\.scripts$!!;
+        my $new_style;
+        $new_style = ($f =~ s!/\.scripts$!!);
+        if (! $new_style) {
+            $f =~ s!/\.scripts-version$!!;
         }
         if (! updatable($f)) {
@@ -76,5 +78,5 @@
             next;
         }
-        $v = $old_style ? old_version($f) : version($f);
+        $v = $new_style ? version($f) : old_version($f);
         print $out "$f:$v";
     }
