Description: Properly set avifile-config's exit status
Bug-Debian: http://bugs.debian.org/489012
Author: Lionel Le Folgoc <mrpouit@ubuntu.com>
Last-Update: 2009-10-22
2009-10-22 Lionel Le Folgoc <mrpouit@ubuntu.com>
* avifile-config.in: Exit with 0 on success.
--- avifile-0.7.48~20090503.ds.orig/avifile-config.in
+++ avifile-0.7.48~20090503.ds/avifile-config.in
@@ -99,12 +99,35 @@
libs="-laviplay"
#libs="-L$lib_dir @AVIFILE_RLD_FLAGS@ -laviplay"
-test "$lib_dir" != "/usr/lib" && libs="-L$lib_dir $libs"
+if test "$lib_dir" != "/usr/lib"; then
+ libs="-L$lib_dir $libs"
+fi
-test "$echo_prefix" = "yes" && echo $prefix
-test "$echo_exec_prefix" = "yes" && echo $exec_prefix
-test "$echo_cflags" = "yes" && echo $cflags
-test "$echo_libs" = "yes" && echo $libs
-test "$echo_data_dir" = "yes" && echo $datadir
-test "$echo_data_root_dir" = "yes" && echo $datarootdir
-test "$echo_version" = "yes" && echo $version
+
+if test "$echo_prefix" = "yes"; then
+ echo $prefix
+fi
+
+if test "$echo_exec_prefix" = "yes"; then
+ echo $exec_prefix
+fi
+
+if test "$echo_cflags" = "yes"; then
+ echo $cflags
+fi
+
+if test "$echo_libs" = "yes"; then
+ echo $libs
+fi
+
+if test "$echo_data_dir" = "yes"; then
+ echo $data_dir
+fi
+
+if test "$echo_data_root_dir" = "yes"; then
+ echo $datarootdir
+fi
+
+if test "$echo_version" = "yes"; then
+ echo $version
+fi