Now dodoc always returns with success. I adjusted dodoc to return with better values. This way I can do the following in my bashrc. It would probably be better to do something like this by default, but that is an another discussion.
Regards, Petteri
Index: main/trunk/bin/dodoc
===================================================================
--- main/trunk/bin/dodoc (revision 2317)
+++ main/trunk/bin/dodoc (working copy)
@@ -13,11 +13,16 @@
install -d "${dir}"
fi
+success=0
+
for x in "$@" ; do
if [ -s "${x}" ] ; then
install -m0644 "${x}" "${dir}"
gzip -f -9 "${dir}/${x##*/}"
elif [ ! -e "${x}" ] ; then
echo "dodoc: ${x} does not exist" 1>&2
+ success=1
fi
done
+
+exit ${success}
signature.asc
Description: OpenPGP digital signature
