Fix logfile generation if filenames contain + or space

This commit is contained in:
Arne Fitzenreiter
2009-04-14 22:29:56 +02:00
parent 1e7e01fb4a
commit c9444dcf3b
2 changed files with 5 additions and 3 deletions

View File

@@ -51,7 +51,7 @@
* bc-1.06
* beep-1.2.2
* bind-9.3.2
* binutils-2.16.1
* binutils-2.17
* bison-2.2
* bluez-libs-3.36
* br2684ctl

View File

@@ -136,12 +136,14 @@ define POSTBUILD
echo "error $$LFS_SCRIPT not found in config/rootfiles"; \
fi; \
sed "s/KVER/$(KVER)/g" $$ROOTFILE > $(TARGET)_rootfile; \
IFS=`echo`; \
for line in `cat $(TARGET)_diff`; do \
if grep -qE "^#$$line$$" $(TARGET)_rootfile; then echo "#$$line" >> $(TARGET); \
elif grep -qE "^$$line$$" $(TARGET)_rootfile ; then echo "$$line" >> $(TARGET); \
if grep -qG "^#$$line$$" $(TARGET)_rootfile; then echo "#$$line" >> $(TARGET); \
elif grep -qG "^$$line$$" $(TARGET)_rootfile ; then echo "$$line" >> $(TARGET); \
else echo "+$$line" >> $(TARGET); \
fi; \
done; \
unset IFS; \
rm -f $(TARGET)_rootfile; \
else \
touch $(TARGET); \