blob: f06473daf059301f0b6e257e2f21f33699d79dd4 [file] [log] [blame]
david_williams7d692f42009-03-02 00:59:06 +00001
2if [ -z $1 ]
3then
4 loc=./
5else
6 loc=${1}
7fi
8if [ -z $2 ]
9then
david_williams438e2082009-06-07 05:59:09 +000010 pat=".*\(\.jar$\|\.jar\.pack\.gz$\)"
david_williams7d692f42009-03-02 00:59:06 +000011else
12 pat="${2}"
13fi
14
david_williams438e2082009-06-07 05:59:09 +000015# VERIFYOUTDIR is used in 'verify.sh' and must be clean before
16# beginning
17export VERIFYOUTDIR="${HOME}"/verifyoutdir
david_williams7d692f42009-03-02 00:59:06 +000018
david_williams918edaa2009-06-08 01:22:51 +000019# make, in case doesn't exist
20mkdir -p "${VERIFYOUTDIR}"
21
david_williams438e2082009-06-07 05:59:09 +000022# even though we just set it above, include the if check
23# here to gaurd against future errors, since if 'verfiyoutdir' is
24# not defined, the remove if for the root directory!
25if [[ -n "${VERIFYOUTDIR}" ]]
26then
27 rm -fr "${VERIFYOUTDIR}"/*
28fi
29
30echo " verify directory: ${loc}";
31echo " for pattern: ${pat}";
david_williams918edaa2009-06-08 01:22:51 +000032echo " output files in " "${VERIFYOUTDIR}"
david_williams438e2082009-06-07 05:59:09 +000033
34find "${loc}" -regex "${pat}" -exec verify.sh '{}' \;
david_williams7d692f42009-03-02 00:59:06 +000035