doc build - finally fix images.mk to stop changing order every make
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 6 Dec 2013 00:02:18 +0000 (09:02 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 6 Dec 2013 00:02:18 +0000 (09:02 +0900)
sort changes output based on locale. even between C and en_US etc.
letalone all the other interesting ones. this causes the sorted order
to keep changing of the images. this forces locale to C to make it
always the same order.

doc/Makefile.am

index 947cc5e53b0d33e1b089e98105acaddcfbc93a15..63a834e51999ad0217602113aec9da1cbfb8a2a8 100644 (file)
@@ -55,7 +55,7 @@ include images.mk
 all-local:
        @rm -f images.tmp; \
        echo 'EXTRA_DIST += \' > images.tmp; \
-       (cd $(srcdir) && find ./img -type f -print | cut -d/ -f2- | grep -v '~' | sort | tr '\n' ' ') >> images.tmp && \
+       (cd $(srcdir) && find ./img -type f -print | cut -d/ -f2- | grep -v '~' | LANG=C LANGUAGE=C LC_ALL=C LC_CTYPE=C LC_NUMERIC=C LC_TIME=C LC_COLLATE=C LC_MONETARY=C LC_MESSAGES=C LC_PAPER=C LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=C LC_IDENTIFICATION=C sort | tr '\n' ' ') >> images.tmp && \
        echo >> images.tmp && \
        if ! cmp "$(srcdir)/images.mk" images.tmp >/dev/null; then \
           echo "warning: new images added to '$(srcdir)/images.mk'"; \