From owner-freebsd-ports@FreeBSD.ORG Sat Apr 27 23:21:42 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9BF5E38D for ; Sat, 27 Apr 2013 23:21:42 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by mx1.freebsd.org (Postfix) with ESMTP id 775961EB1 for ; Sat, 27 Apr 2013 23:21:42 +0000 (UTC) Received: by mail-pa0-f41.google.com with SMTP id kq12so2329058pab.14 for ; Sat, 27 Apr 2013 16:21:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=NOAJ+vBYKk2noJuus2VcEgcU2r2jrCaT3GyyyK2pnes=; b=A+7IVNl+xD11cln1a1/bo57eXwbbRkdxax2/lSecHJWT8iPdrL97wPZNIc1e1vZb6o 1hlrEEKyvLdbi4pWPC61de1BObP4ff8bwoDR8XgBWyOIpPXhTRHSMGAPaiJbvAn4wKT3 seEHfJKGX7gBJF8CDkAXluvAS8xTi3e6Ut9rA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:x-gm-message-state; bh=NOAJ+vBYKk2noJuus2VcEgcU2r2jrCaT3GyyyK2pnes=; b=OKGmMrHzpFn1/fFgCNIARcsbXv2XeVwBxhf+VBu38JzxUmKclomiTZauhhITmLGo+s l9nfE+svDhDWGl3UIWqkyXBRVYVSgvpfD4QI8Os+AvWXkwI3SfJuY5zuz94U280jl0f6 f9a+ji1UQdcqAT5B0tVHgGN2rFsJWtZ7FHjVeHa8kThuKgedNmyesTcvnkU1RGaGhJHU H8c/EA02yjxfQe6lUyn24CeL+M2vb1WqNf7t77ywPtHPl16zfBV1QJ7UjyOvZzWI3qBk O60+6rskNeEgGmKJP47gvqaMva7urHHWvhuTcdmgf14ZVKqKEVtJ9lsJuA6iw78u75JA MrjQ== X-Received: by 10.66.8.69 with SMTP id p5mr40515808paa.57.1367104896582; Sat, 27 Apr 2013 16:21:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.159.97 with HTTP; Sat, 27 Apr 2013 16:21:05 -0700 (PDT) In-Reply-To: References: From: Eitan Adler Date: Sat, 27 Apr 2013 19:21:05 -0400 Message-ID: Subject: Re: removing file doing uninstall To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQlfviapQ9PVzawQL58263/enapOl/O7//MjyIEf+kqDN5LDIPag43ukleyOZblznO9Aw4vU X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Apr 2013 23:21:42 -0000 On 27 April 2013 09:11, Carmel wrote: > @unexec if %%PORTDOCS%%%%DOCSDIR%%/Release.html; then rm -f %%PORTDOCS%%%%DOCSDIR%%/Release.html; fi > > However, while "portlint -A" has no problem with it, I receive: > > share/doc/scamp/Release.html: not found To explain this error: note that if refers to a command, not to file's existence. You were missing [ -e $file ]. As others of had said, this is uneeded though. -- Eitan Adler