Module Name: src Committed By: apb Date: Thu Dec 3 12:44:58 UTC 2009
Modified Files: src/distrib/sets: maketars Log Message: Exit with a sensible error message if makeflist output is empty. This should be better than an incomprehensible error message from mtree. To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71 src/distrib/sets/maketars Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/sets/maketars diff -u src/distrib/sets/maketars:1.70 src/distrib/sets/maketars:1.71 --- src/distrib/sets/maketars:1.70 Mon Nov 30 16:13:23 2009 +++ src/distrib/sets/maketars Thu Dec 3 12:44:57 2009 @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: maketars,v 1.70 2009/11/30 16:13:23 uebayasi Exp $ +# $NetBSD: maketars,v 1.71 2009/12/03 12:44:57 apb Exp $ # # Make release tar files for some or all lists. Usage: # maketars [-b] [-x] [-i installdir] [-a arch] [-m machine] [-s setsdir] @@ -161,6 +161,10 @@ ${HOST_SH} "${setsdir}/makeflist" -a "${MACHINE_ARCH}" -m "${MACHINE}" \ -s "${setsdir}" "${setname}" > "${SDIR}/flist.${setname}" \ || exit 1 + if ! [ -s "${SDIR}/flist.${setname}" ]; then + echo >&2 "makeflist output is empty for ${setname}" + exit 1 + fi if [ -n "${metalog}" ]; then ${setfilesonly} && msg "Creating ${setlistdir}/set.${setname}" ${AWK} -f "${rundir}/getdirs.awk" "${SDIR}/flist.${setname}" \