1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- 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>
This commit is contained in:
Pietro Cerutti 2014-05-05 13:57:35 +00:00
parent 1604951b30
commit 474f608c9d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353003
2 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= wrapper
PORTVERSION= 1.1
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= lang tcl
MASTER_SITES= # empty
PKGNAMEPREFIX= ${TX_PORT}-

View File

@ -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