forked from pool/obs-service-source_validator
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-source_validator?expand=0&rev=7
37 lines
541 B
Bash
37 lines
541 B
Bash
#!/bin/bash
|
|
|
|
# Verify local source via osc-source_validator
|
|
|
|
|
|
while test $# -gt 0; do
|
|
case $1 in
|
|
*-outdir)
|
|
# just dummy ...
|
|
MYOUTDIR="$2"
|
|
shift
|
|
;;
|
|
*)
|
|
echo Unknown parameter $1.
|
|
echo 'Usage: this service is not excepting parameters'
|
|
exit 1
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
FILE="${PATH##*/}"
|
|
|
|
RETURN=0
|
|
for i in /usr/lib/osc/source_validators/*; do
|
|
if [ -f "$i" ]; then
|
|
if [ -z "$PS1" ]; then
|
|
"$i" --batchmode || RETURN=1
|
|
else
|
|
"$i" || RETURN=1
|
|
fi
|
|
fi
|
|
done
|
|
|
|
exit $RETURN
|
|
|