-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuniscan
executable file
·52 lines (44 loc) · 1009 Bytes
/
uniscan
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
: ${RCSID:=$Id: - @VERSION@ @DATE@ @TIME@ - $}
: ${PROGRAM_TITLE:="uni/ scan & maintainance utility"}
: ${PROGRAM_SYNTAX:=[OPTIONS] [--] CMD ...}
. shlib-import cliboot
option -q --quiet
option -v --verbose
option -h --help
option --version
function help_more() {
echo
echo "Command: "
echo " notags List package dirs without tags file"
}
function setopt() {
case "$1" in
-h|--help)
help $1; exit;;
-q|--quiet)
LOGLEVEL=$((LOGLEVEL - 1));;
-v|--verbose)
LOGLEVEL=$((LOGLEVEL + 1));;
--version)
show_version; exit;;
*)
quit "invalid option: $1";;
esac
}
function main() {
cmd="$1"
shift
$cmd "$@"
echo Done.
}
function notags() {
find -name debian -type d | while read dir; do
if [ -f "$dir/tags" ]; then
:;
else
echo $dir
fi
done
}
boot "$@"