From owner-freebsd-ports@FreeBSD.ORG Thu Mar 4 00:34:36 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F4E41065674 for ; Thu, 4 Mar 2010 00:34:36 +0000 (UTC) (envelope-from salfrancl.listas@gmail.com) Received: from mail-fx0-f223.google.com (mail-fx0-f223.google.com [209.85.220.223]) by mx1.freebsd.org (Postfix) with ESMTP id 182D88FC12 for ; Thu, 4 Mar 2010 00:34:35 +0000 (UTC) Received: by fxm23 with SMTP id 23so713079fxm.3 for ; Wed, 03 Mar 2010 16:34:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=FfDDEt91NlscrUEYRswkgMHyKZISeDJPyov0rbFgKDk=; b=mMtMRo3S9xJfYdSM/9p5DcJ9pMg0XE3RGbZF4DKBzudCq6pNyZVnGK5MEkn6DPC+Xn 8MsIYnGh1yS7zQ1h1Z6diV5AjZ+sRXuAr4VC5QIjT2UE2wADxKDnLLXhf9VCL1CrxpiH hX0pD82GYHoMdTi9SGmz+4TYv8ejqIlSR9JpM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=bDp4cx6QjSgwYNkEvu+D+JgCRf+4O/wEm8hGDa1X5SU6F3x/ii38wl/BjcxJNF8ycA Tg0F6uySrSUKXqUbXCxucFUaMAwU33xZp3yFm6o4rAgq2FX4fTSzFEnXkuicXpVWRlkN cORC7E950aFSKiD7NImrMSOU6l5jgXWc44vTg= MIME-Version: 1.0 Received: by 10.239.154.204 with SMTP id f12mr849146hbc.153.1267662461436; Wed, 03 Mar 2010 16:27:41 -0800 (PST) Date: Wed, 3 Mar 2010 19:27:41 -0500 Message-ID: From: Leinier Cruz Salfran To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: graphics/djvulibre-nox11: files/patch-tools_any2djvu error X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2010 00:34:36 -0000 hello i modified the file 'files/patch-tools_any2djvu' this is the content of the modified file (i installed the port with my modification) -#! /bin/bash -f +#!/bin/sh # CVS version control block - do not edit manually # $RCSfile: any2djvu,v $ # $Revision: 1.3 $ # $Date: 2007/08/10 08:08:55 $ # $Source: /cvsroot/djvu/djvulibre-3.5/tools/any2djvu,v $ -function copyright() +copyright() { echo "Copyright (C) 2002 David Kreil " echo "Modified by Barak A. Pearlmutter " @@ -14,7 +14,7 @@ echo "Released under the GNU GPL v2, 21-Oct-2002." } -function warranty() +warranty() { echo "This program is distributed in the hope that it will be useful," echo "but WITHOUT ANY WARRANTY; without even the implied warranty of" @@ -22,7 +22,7 @@ echo "GNU General Public License for more details." } -function disclaimer() +disclaimer() { echo "By using this tool you accept the following disclaimer:" echo " Because the any2djvu service is free of charge, there is no" @@ -40,7 +40,7 @@ ocr=1 docformat=2 -function warn() +warn() { echo "Notes:" echo " - Internet connection is required." @@ -53,7 +53,7 @@ echo " - This software comes with NO WARRANTY." } -function format_help() +format_help() { echo "Codes for the formats of the input documents to use with -f" echo " 1 - DjVu Document (for verification or OCR)" @@ -67,7 +67,7 @@ echo " 9 - Scanned Document - Color/Mixed - >400 dpi" } -function usage() +usage() { echo "Convert files from .ps/.ps.gz/.pdf to .djvu" echo "Usage: $0 [options] [url] {filename(s)}" @@ -123,13 +123,13 @@ fi # check OCR option -if [ ! "x$ocr" == x0 ] && [ ! "x$ocr" == x1 ]; then +if [ ! "x$ocr" = x0 ] && [ ! "x$ocr" = x1 ]; then echo 'error: -o OCR must be 0 or 1' exit 2 fi # if help is requested or docformat is not specified right - show help -if [ "x$docformat" == x'help' ]; then +if [ "x$docformat" = x'help' ]; then format_help exit 0 fi @@ -215,7 +215,7 @@ -F ocr=$ocr -F legal=1 "$rurl/$rcgi" \ | eval tee "'$log'" $shellopts else - wget $wgetopts -O - "$rurl/$rcgi?urlupload=$lurl/$in$cgiopts" \ + /usr/bin/fetch$wgetopts -o - "$rurl/$rcgi?urlupload=$lurl/$in$cgiopts" \ | eval tee "'$log'" $shellopts fi l=`egrep 'href=djvu/.*\.djvu' "$log"` @@ -225,7 +225,7 @@ echo "error: something got wrong. check log file" exit 1 fi - wget $wgetopts -O "$b.djvu" "$rurl/$l" + /usr/bin/fetch $wgetopts -o $b.djvu "$rurl/$l" [ -z "$doclean" ] || rm "$log" [ -z $silent ] && ls -l "$b.djvu"