]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Make lang-names in a tmp-file.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 25 May 2008 16:25:09 +0000 (18:25 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 25 May 2008 16:25:09 +0000 (18:25 +0200)
src/pomona/Makefile

index 91595233949c093f9f555d393d68c9e5344f06bc..689cee327384cda34584c099ee4b182837828888 100644 (file)
@@ -26,7 +26,8 @@ all: subdirs
 
 lang-names: lang-table
        PYTHONPATH="./src/:." LANG=en_US.UTF-8 \
-               python scripts/getlangnames.py > lang-names
+               python scripts/getlangnames.py > lang-names.tmp
+       mv lang-names.tmp lang-names
 
 install: all
        @if [ "$(DESTDIR)" = "" ]; then \
@@ -41,7 +42,7 @@ install: all
 
 clean:
        for d in $(SUBDIRS); do make -C $$d clean; done
-       rm -rf lang-names
+       rm -rf lang-names{,.tmp}
 
 subdirs:
        for d in $(SUBDIRS); do make -C $$d; [ $$? = 0 ] || exit 1; done