Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 May 2014 13:57:36 +0000 (UTC)
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r353003 - in head/lang/tcl-wrapper: . files
Message-ID:  <201405051357.s45DvapL010906@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gahr
Date: Mon May  5 13:57:35 2014
New Revision: 353003
URL: http://svnweb.freebsd.org/changeset/ports/353003
QAT: https://qat.redports.org/buildarchive/r353003/

Log:
  - Use the sample configuration file if the actual one is not available.This
  makes the wrapper usable right after make install.
  
  PR:		189359
  Submitted by:	Thierry Thomas <thierry@FreeBSD.org>

Modified:
  head/lang/tcl-wrapper/Makefile
  head/lang/tcl-wrapper/files/wrapper.in

Modified: head/lang/tcl-wrapper/Makefile
==============================================================================
--- head/lang/tcl-wrapper/Makefile	Mon May  5 13:48:25 2014	(r353002)
+++ head/lang/tcl-wrapper/Makefile	Mon May  5 13:57:35 2014	(r353003)
@@ -3,7 +3,7 @@
 
 PORTNAME=	wrapper
 PORTVERSION=	1.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	lang tcl
 MASTER_SITES=	# empty
 PKGNAMEPREFIX=	${TX_PORT}-

Modified: head/lang/tcl-wrapper/files/wrapper.in
==============================================================================
--- head/lang/tcl-wrapper/files/wrapper.in	Mon May  5 13:48:25 2014	(r353002)
+++ head/lang/tcl-wrapper/files/wrapper.in	Mon May  5 13:57:35 2014	(r353003)
@@ -6,6 +6,10 @@
 %%TX_SHELL_U%%=
 %%TX_SHELL_U%%_CONF=%%TX_CONF_FULL%%
 
+if [ ! -f "${%%TX_SHELL_U%%_CONF}" ]; then
+    %%TX_SHELL_U%%_CONF=${%%TX_SHELL_U%%_CONF}.sample
+fi
+
 if [ -f "${%%TX_SHELL_U%%_CONF}" ]; then
   . ${%%TX_SHELL_U%%_CONF}
   if [ -n "${%%TX_SHELL_U%%}" ]; then



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405051357.s45DvapL010906>