]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - lfs/Config
Fix logfile generation if filenames contain + or space
[people/teissler/ipfire-2.x.git] / lfs / Config
index 9c331abf0d882ff82805f070c83481e3980bbca4..d6dc30a4313369fc042cac778019867f967d9800 100644 (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); \