Ticket #31029: patch-Portfile.diff

File patch-Portfile.diff, 709 bytes (added by carsomyr@…, 13 years ago)

The Portfile patch.

  • Portfile

    old new  
    5959    xinstall -d ${buildpath}
    6060    set fp [open ${buildpath}/svg2pdf w]
    6161    puts $fp "#!/bin/sh"
    62     puts $fp "if [ $# -lt 2 -o \"$1\" = \"-h\" -o \"$1\" = \"--help\" ] ; then"
    63     puts $fp "  echo \"FAIL: usage: $0 input_file.svg output_file.pdf\""
     62    puts $fp "if \[ \$# -lt 2 -o \"\$1\" = \"-h\" -o \"\$1\" = \"--help\" \] ; then"
     63    puts $fp "  echo \"FAIL: usage: \$0 input_file.svg output_file.pdf\""
    6464    puts $fp "  exit 255;"
    6565    puts $fp "fi"
    66     puts $fp "rsvg-convert -f pdf -o \"$2\" \"$1\""
     66    puts $fp "rsvg-convert -f pdf -o \"\$2\" \"\$1\""
    6767    close $fp
    6868}
    6969