From 421b63743136bcb413c8545fdcb307ffc84a9ca7 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Thu, 2 Dec 2010 10:01:46 +0000 Subject: [PATCH] Handle filenames with embedded spaces. This patch has been submitted upstream: http://code.google.com/p/tovid/issues/detail?id=138 --- multimedia/tovid/files/patch-makemenu | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 multimedia/tovid/files/patch-makemenu diff --git a/multimedia/tovid/files/patch-makemenu b/multimedia/tovid/files/patch-makemenu new file mode 100644 index 000000000000..7c8ba2a0566f --- /dev/null +++ b/multimedia/tovid/files/patch-makemenu @@ -0,0 +1,29 @@ +--- src/makemenu.orig 2010-12-02 01:51:23.000000000 -0800 ++++ src/makemenu 2010-12-02 01:53:50.000000000 -0800 +@@ -563,7 +563,7 @@ + + # Blank placeholder: no font decorations or color + convert \ +- -size $(identify "$TMP_DIR/00_title-$SEQNUM.png" | awk '{print $3}') \ ++ -size $(identify - <"$TMP_DIR/00_title-$SEQNUM.png" | awk '{print $3}') \ + xc:none "$TMP_DIR/00_title-${SEQNUM}_placeholder.png" + fi + done +@@ -600,7 +600,7 @@ + "$TILE_CANVAS" "$SELECT_BUTTON" + + # A placeholder to space the title text correctly +- convert -size $(identify "$HIGHLIGHT_BUTTON" | awk '{print $3}') xc:none \ ++ convert -size $(identify - <"$HIGHLIGHT_BUTTON" | awk '{print $3}') xc:none \ + "$BUTTON_PLACEHOLDER" + + # Next, join the button tiles with the title tiles: +@@ -654,7 +654,7 @@ + "$MENU_TEXT" + if test $RES = "dvd"; then + # DVD menus need an empty placeholder for the buttons +- convert -size $(identify "$MENU_TITLE_TEXT" | awk '{print $3}') \ ++ convert -size $(identify - <"$MENU_TITLE_TEXT" | awk '{print $3}') \ + xc:none "$MENU_TITLE_PLACEHOLDER" + convert -background none "$MENU_TITLE_PLACEHOLDER" "$HIGHLIGHT_TEXT" \ + -append "$HIGHLIGHT_TEXT"