Hi, call to ptxdist clean will thow error when ptxconfig doesn't exist - for example if it is symlink which was removed earlier with ptxdist distclean.
ladis Index: bin/ptxdist =================================================================== RCS file: /var/cvs/ptxdist2/bin/ptxdist,v retrieving revision 1.23 diff -u -r1.23 ptxdist --- bin/ptxdist 19 Jun 2007 10:32:26 -0000 1.23 +++ bin/ptxdist 21 Jun 2007 14:18:27 -0000 @@ -524,23 +524,25 @@ rm -rf ${dir} done - echo "${PROMPT}removing sysroot directories..." - ptxconf_prefix=$(. ${PTXCONFIG} && echo ${PTXCONF_PREFIX}) - ptxconf_host_prefix=$(. ${PTXCONFIG} && echo ${PTXCONF_HOST_PREFIX}) - ptxconf_cross_prefix=$(. ${PTXCONFIG} && echo ${PTXCONF_CROSS_PREFIX}) - - for dir in ${ptxconf_prefix} ${ptxconf_host_prefix} ${ptxconf_cross_prefix}; do - if test \! -d "${dir}"; then - continue - fi - case "${dir}" in - (${PTXDIST_WORKSPACE}/*) - rm -rf "${dir}" - ;; - (*) - ;; - esac - done + if test -f "${PTXCONFIG}"; then + echo "${PROMPT}removing sysroot directories..." + ptxconf_prefix=$(. ${PTXCONFIG} && echo ${PTXCONF_PREFIX}) + ptxconf_host_prefix=$(. ${PTXCONFIG} && echo ${PTXCONF_HOST_PREFIX}) + ptxconf_cross_prefix=$(. ${PTXCONFIG} && echo ${PTXCONF_CROSS_PREFIX}) + + for dir in ${ptxconf_prefix} ${ptxconf_host_prefix} ${ptxconf_cross_prefix}; do + if test \! -d "${dir}"; then + continue + fi + case "${dir}" in + (${PTXDIST_WORKSPACE}/*) + rm -rf "${dir}" + ;; + (*) + ;; + esac + done + fi echo "${PROMPT}removing deps..." rm -f depend.out deptree-a4.ps deptree.ps @@ -886,9 +888,9 @@ rm -f .toolchain echo "${PROMPT}removing logs dir..." rm -fr logfile - if [ -h "ptxconfig" ]; then + if [ -h "${PTXCONFIG}" ]; then echo "${PROMPT}removing ptxconfig link..." - rm ptxconfig + rm ${PTXCONFIG} fi echo ;; -- ptxdist mailing list ptxdist@pengutronix.de