summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-07-04 10:18:49 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-07-04 10:20:56 +0200
commit68624925eaab3b665beea215c690df8a41b74cd5 (patch)
tree3195f445c7d70f7bf565de9572482d33077f45d3 /data
parentd2fee8bc45c377c19fe10d8bf4698485675b2c06 (diff)
android: Instead of cat | sed, use sed directly on the file
Windows has no cat so it doesn't work. We lose some symmetry in the code in exchange for Windows portability. https://bugzilla.gnome.org/show_bug.cgi?id=768326
Diffstat (limited to 'data')
-rwxr-xr-xdata/ndk-build/gstreamer-1.0.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/data/ndk-build/gstreamer-1.0.mk b/data/ndk-build/gstreamer-1.0.mk
index dd9a0c8b..1f896194 100755
--- a/data/ndk-build/gstreamer-1.0.mk
+++ b/data/ndk-build/gstreamer-1.0.mk
@@ -207,8 +207,7 @@ genstatic_$(TARGET_ARCH_ABI): PRIV_G_R := $(G_IO_MODULES_DECLARE)
genstatic_$(TARGET_ARCH_ABI):
@$(HOST_ECHO) "GStreamer : [GEN] => $(PRIV_C)"
@$(call host-mkdir,$(PRIV_B_DIR))
- @cat $(PRIV_C_IN) | \
- $(SED) "s/@PLUGINS_DECLARATION@/$(PRIV_P_D)/g" | \
+ @$(SED) "s/@PLUGINS_DECLARATION@/$(PRIV_P_D)/g" $(PRIV_C_IN) | \
$(SED) "s/@PLUGINS_REGISTRATION@/$(PRIV_P_R)/g" | \
$(SED) "s/@G_IO_MODULES_LOAD@/$(PRIV_G_L)/g" | \
$(SED) "s/@G_IO_MODULES_DECLARE@/$(PRIV_G_R)/g" > $(PRIV_C)
@@ -254,8 +253,7 @@ copyjavasource_$(TARGET_ARCH_ABI):
@$(foreach file,$(GSTREAMER_PLUGINS_CLASSES), \
$(call host-cp,$(GSTREAMER_NDK_BUILD_PATH)$(file),$(GSTREAMER_JAVA_SRC_DIR)/org/freedesktop/gstreamer/$(file)) && ) echo Done cp
- @cat $(GSTREAMER_NDK_BUILD_PATH)/GStreamer.java | \
- $(SED) "s;@INCLUDE_FONTS@;$(GSTREAMER_INCLUDE_FONTS_SUBST);g" | \
+ @$(SED) "s;@INCLUDE_FONTS@;$(GSTREAMER_INCLUDE_FONTS_SUBST);g" $(GSTREAMER_NDK_BUILD_PATH)/GStreamer.java | \
$(SED) "s;@INCLUDE_CA_CERTIFICATES@;$(GSTREAMER_INCLUDE_CA_CERTIFICATES_SUBST);g" | \
$(SED) "s;@INCLUDE_COPY_FILE@;$(GSTREAMER_COPY_FILE_SUBST);g" \
> $(GSTREAMER_JAVA_SRC_DIR)/org/freedesktop/gstreamer/GStreamer.java