pick more explicit variable names when exporting stuff from rpm to debian
[build.git] / partial-check.sh
1 #!/bin/sh
2
3 COMMAND=$(basename $0)
4
5 function usage () {
6     echo "Usage: $COMMAND"
7     echo "  performs basic checks in all 'PARTIAL-RPMS' found in ."
8     exit 1
9 }
10
11 [[ -z "$@" ]] || usage
12 case "$1" in *-h*) usage ;; esac
13
14 set -e 
15
16 for partial in $(find . -name 'PARTIAL*'); do
17     ls $partial/nodeimage* >& /dev/null \
18  || ls $partial/bootstrapfs* >& /dev/null \
19  || echo WARNING with $partial - no nodeimage/bootstrapfs
20 done