]> git.parisson.com Git - pdf.js.git/commitdiff
cross-platform sed fix
authorArtur Adib <arturadib@gmail.com>
Mon, 5 Dec 2011 21:25:16 +0000 (16:25 -0500)
committerArtur Adib <arturadib@gmail.com>
Mon, 5 Dec 2011 21:25:16 +0000 (16:25 -0500)
Makefile

index caeca9b41e0a6b04476de03b8b60f2029cd09ba6..93685d4eb74fdcebfc416019b527a0e3b87e297a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -64,7 +64,8 @@ bundle: | $(BUILD_DIR)
        @cd src; \
        cat $(PDF_JS_FILES) > all_files.tmp; \
        sed '/PDFJSSCRIPT_INCLUDE_ALL/ r all_files.tmp' pdf.js > ../$(BUILD_TARGET); \
-       sed -i '' "s/PDFJSSCRIPT_BUNDLE_VER/`git log --format="%H" -n 1`/" ../$(BUILD_TARGET); \
+       sed -i.bak "s/PDFJSSCRIPT_BUNDLE_VER/`git log --format="%H" -n 1`/" ../$(BUILD_TARGET); \
+       rm -f ../$(BUILD_TARGET).bak
        rm -f *.tmp; \
        cd ..