corrected unnoticed bug. Only occured if make was interrupted when the package had xxx-build directory

This commit is contained in:
George Boudreau 2006-08-26 03:17:58 +00:00
parent a3b0e382b5
commit d8851cfe33

View file

@ -26,7 +26,7 @@ define remove_existing_dirs2
@PKG_PATH=\`ls -t $(SRC)/$(1) | head -n1\` && \ @PKG_PATH=\`ls -t $(SRC)/$(1) | head -n1\` && \
ROOT=`tar -tf $$PKG_PATH | head -n1 | sed -e 's@^./@@;s@/.*@@'` && \ ROOT=`tar -tf $$PKG_PATH | head -n1 | sed -e 's@^./@@;s@/.*@@'` && \
rm -rf $(SRC)/$$ROOT && \ rm -rf $(SRC)/$$ROOT && \
rm -rf $(SRC)/$${ROOT-*}-build rm -rf $(SRC)/$${ROOT%-*}-build
endef endef
define remove_build_dirs define remove_build_dirs