Ticket #26454: patch-src-makemenu.diff

File patch-src-makemenu.diff, 874 bytes (added by danielb@…, 14 years ago)
  • ./src/makemenu

    old new  
    657657
    658658    # Calculate number of \n characters in title, so menu title height
    659659    # will be set correctly
    660     TITLE_LINES=$(echo "$MENU_TITLE" | sed 's/!//g;s/\\n/!/g;s/[^!]//g' | wc -c)
     660    TITLE_LINES=$(echo "$MENU_TITLE" | gsed 's/!//g;s/\\n/!/g;s/[^!]//g' | wc -c)
    661661    TITLE_HEIGHT=$((100 * $TITLE_LINES))
    662662
    663663    # Draw the menu title and pad the bottom with TILE_HEIGHT pixels
     
    787787# Calculate video length from length of audio
    788788VID_LENGTH=$(mplayer -quiet -identify -frames 0 -vo null -ao null \
    789789    "$AUDIO_STREAM" 2>&1 | grep '^ID_LENGTH' | awk -F '=' '{print $2}' | \
    790     sed -e "s/\.[0-9]*//g")
     790    gsed -e "s/\.[0-9]*//g")
    791791VID_LENGTH=$(expr "$VID_LENGTH" \* $FPS \/ 100)
    792792
    793793# Make sure VID_LENGTH is nonzero