Add automated tests on function-type FSCommand parameter passing.
[gnash.git] / base-attempter.sh
blob3322d4167f9a691fa884d60a15e6aea28880f0d0
1 #!/bin/sh
2 succeded=
3 failed=
4 if test x"$PKGCOMMAND" = x; then
5 echo "Please execute deb-attempt-install-dependencies.sh or"
6 echo "rpm-attempt-install-dependencies.sh after configuring."
7 exit
8 fi
10 if test x"$packages" != x; then
11 for PKGS in $packages; do
12 for P in `echo $PKGS | sed "s/\\// /g"`; do
13 $PKGCOMMAND $P
14 success=$?
15 if test $success -eq 0; then break; fi
16 done
17 if test $success -gt 0; then
18 failed="$failed $PKGS"
19 else
20 succeded="$succeded $P"
22 done
24 echo
25 echo "results:"
26 for P in $succeded; do
27 echo "SUCCESS: $P"
28 done
29 for P in $failed; do
30 echo "FAILED: $P"
31 done
32 if test x"$failed" != x; then
33 echo "Some packages might not have been installed because they are not in your repositories. This is normal. If needed, please install them manually. If packages exist, but were not detected, please tell us so we can add them to the list. For instructions on how to proceed from here, please run configure again."
34 else
35 echo "All dependencies are satisfied -- You should now be able to run configure successfully"
37 else
38 echo "All dependencies are satisfied -- You should now be able to run configure successfully"