Browse Source

Bring back the (private) ALL format

Alois Mahdal 6 years ago
parent
commit
c3aca29cf8
2 changed files with 4 additions and 2 deletions
  1. 2
    1
      src/libexec/jattool-sfind
  2. 2
    1
      src/libexec/jattool-tfind

+ 2
- 1
src/libexec/jattool-sfind View File

79
                 echo //
79
                 echo //
80
             )
80
             )
81
             case $Fmt in
81
             case $Fmt in
82
+                ALL)      echo "$SuiteId	$SuiteVersion	$SuiteDir" ;;
82
                 id)       echo "$SuiteId"      ;;
83
                 id)       echo "$SuiteId"      ;;
83
                 path)     echo "$SuiteDir"     ;;
84
                 path)     echo "$SuiteDir"     ;;
84
                 version)  echo "$SuiteVersion" ;;
85
                 version)  echo "$SuiteVersion" ;;
97
     esac done
98
     esac done
98
     FindDirs=("$@")
99
     FindDirs=("$@")
99
     case $Fmt in
100
     case $Fmt in
100
-        id|path|version) : ;;
101
+        id|path|version|ALL) : ;;
101
         *) usage -w "unknown FMT: $Fmt" ;;
102
         *) usage -w "unknown FMT: $Fmt" ;;
102
     esac
103
     esac
103
     debug -v FindDirs Fmt
104
     debug -v FindDirs Fmt

+ 2
- 1
src/libexec/jattool-tfind View File

34
             t_path=$s_dir/$t_rpath
34
             t_path=$s_dir/$t_rpath
35
             debug -v s_dir s_id t_apath t_rpath t_id t_path
35
             debug -v s_dir s_id t_apath t_rpath t_id t_path
36
             case $Fmt in
36
             case $Fmt in
37
+                ALL)     echo "$t_id	$s_ver	$t_path" ;;
37
                 path)    echo "$t_path" ;;
38
                 path)    echo "$t_path" ;;
38
                 id)      echo "$t_id"   ;;
39
                 id)      echo "$t_id"   ;;
39
                 version) echo "$s_ver"  ;;
40
                 version) echo "$s_ver"  ;;
65
     esac done
66
     esac done
66
     FindDirs=("$@")
67
     FindDirs=("$@")
67
     case $Fmt in
68
     case $Fmt in
68
-        id|version|path) : ;;
69
+        id|version|path|ALL) : ;;
69
         *) usage -w "unknown FMT: $Fmt" ;;
70
         *) usage -w "unknown FMT: $Fmt" ;;
70
     esac
71
     esac
71
     debug -v FindDirs Fmt
72
     debug -v FindDirs Fmt