equal
deleted
inserted
replaced
349 # 2. Apply the file unicode2x.sed which does a whole bunch of \u00XX to \xXX |
349 # 2. Apply the file unicode2x.sed which does a whole bunch of \u00XX to \xXX |
350 # conversions. |
350 # conversions. |
351 # 3. Delete all lines starting with #. |
351 # 3. Delete all lines starting with #. |
352 # 4. Delete empty lines. |
352 # 4. Delete empty lines. |
353 # 5. Append lines ending with \ with the next line. |
353 # 5. Append lines ending with \ with the next line. |
354 # 6. Remove leading and trailing white space. |
354 # 6. Remove leading and trailing white space. Note that tabs must be explicit |
|
355 # as sed on macosx does not understand '\t'. |
355 # 7. Replace the first \= with just =. |
356 # 7. Replace the first \= with just =. |
356 # 8. Finally it's all sorted to create a stable output. |
357 # 8. Finally it's all sorted to create a stable output. |
357 # |
358 # |
358 # It is assumed that = is the character used for separating names and values. |
359 # It is assumed that = is the character used for separating names and values. |
359 define add_file_to_clean |
360 define add_file_to_clean |
368 $(CAT) $$< | $(SED) -e 's/\([^\\]\):/\1\\:/g' -e 's/\([^\\]\)=/\1\\=/g' \ |
369 $(CAT) $$< | $(SED) -e 's/\([^\\]\):/\1\\:/g' -e 's/\([^\\]\)=/\1\\=/g' \ |
369 -e 's/\([^\\]\)!/\1\\!/g' -e 's/#.*/#/g' \ |
370 -e 's/\([^\\]\)!/\1\\!/g' -e 's/#.*/#/g' \ |
370 | $(SED) -f "$(SRC_ROOT)/make/common/support/unicode2x.sed" \ |
371 | $(SED) -f "$(SRC_ROOT)/make/common/support/unicode2x.sed" \ |
371 | $(SED) -e '/^#/d' -e '/^$$$$/d' \ |
372 | $(SED) -e '/^#/d' -e '/^$$$$/d' \ |
372 -e :a -e '/\\$$$$/N; s/\\\n//; ta' \ |
373 -e :a -e '/\\$$$$/N; s/\\\n//; ta' \ |
373 -e 's/^[ \t]*//;s/[ \t]*$$$$//' \ |
374 -e 's/^[ ]*//;s/[ ]*$$$$//' \ |
374 -e 's/\\=/=/' | LC_ALL=C $(SORT) > $$@ |
375 -e 's/\\=/=/' | LC_ALL=C $(SORT) > $$@ |
375 $(CHMOD) -f ug+w $$@ |
376 $(CHMOD) -f ug+w $$@ |
376 |
377 |
377 # And do not forget this target |
378 # And do not forget this target |
378 $1_ALL_COPY_CLEAN_TARGETS += $$($1_BIN)$$($2_TARGET) |
379 $1_ALL_COPY_CLEAN_TARGETS += $$($1_BIN)$$($2_TARGET) |