The packages file has an extra component (for "darcs" or "git") so we need
to take that into account when grepping.
# Sanity check that all the boot libraries are in the tree, to catch
# failure to run darcs-all.
check-packages :
# Sanity check that all the boot libraries are in the tree, to catch
# failure to run darcs-all.
check-packages :
- @ds=`grep "^[^# ][^ ]* *[^ ][^ ]*$$" packages | sed "s/ .*//"`;\
+ @ds=`grep "^[^# ][^ ]* *[^ ][^ ]* *[^ ][^ ]*$$" packages | sed "s/ .*//"`;\
for d in $$ds; do \
if test ! -d $$d; then \
echo "Looks like you're missing $$d,"; \
for d in $$ds; do \
if test ! -d $$d; then \
echo "Looks like you're missing $$d,"; \
set -e
# Check that we have all boot packages.
set -e
# Check that we have all boot packages.
-for dir in `grep "^[^# ][^ ]* *[^ ][^ ]*$" packages | sed "s/ .*//"`
+for dir in `grep "^[^# ][^ ]* *[^ ][^ ]* *[^ ][^ ]*$" packages | sed "s/ .*//"`
do
if test ! -d $dir
then
do
if test ! -d $dir
then