Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Strange behavior of 'exists' function. Need help with Make..

 
   FreeBSD Hosting (Home) -> FreeBSD Ports RSS
Next:  downgrade xorg to 7.1  
Author Message
Yevgen Krapiva

External


Since: Dec 28, 2009
Posts: 1



(Msg. 1) Posted: Mon Dec 28, 2009 4:25 am
Post subject: Strange behavior of 'exists' function. Need help with Makefile.
Archived from groups: mailing>freebsd>ports (more info?)

Hi guys,

I'm trying to create my own port. I'm stucked with the following
Makefile:

PORTNAME= openjsip
PORTVERSION= 0.0.4
....
....
MY_FILE= proxy.properties

do-check:

#FIRST TEST
.. if !exists(/usr/local/share/openjsip/conf/proxy.properties)
@${ECHO_MSG} ">> /usr/local/share/openjsip/conf/proxy.properties
doesn't exist"
.. else
@${ECHO_MSG} ">> /usr/local/share/openjsip/conf/proxy.properties
exists"
.. endif

#SECOND TEST
@${ECHO_MSG} ">> DATADIR=${DATADIR}"

..for f in ${MY_FILE}
.. if !exists(${DATADIR}/conf/${f})
@${ECHO_MSG} ">> File ${DATADIR}/conf/${f} doesn't exist"
.. else
@${ECHO_MSG} ">> File ${DATADIR}/conf/${f} exists"
.. endif
..endfor


I'm trying to make script to check the existence of proxy.properties
file.
The first test works well while to other one (with the use of 'for')
doesn't.
Can you help me, I don't understand why the second test fails.

OUTPUT:

ykrapiva@net/openjsip
>file /usr/local/share/openjsip/conf/proxy.properties
/usr/local/share/openjsip/conf/proxy.properties: ASCII English text,
with CRLF line terminators

ykrapiva@net/openjsip >make do-check
#FIRST TEST
>> /usr/local/share/openjsip/conf/proxy.properties exists
#SECOND TEST
>> DATADIR=/usr/local/share/openjsip
>> File /usr/local/share/openjsip/conf/proxy.properties doesn't exist

_______________________________________________
freebsd-ports.RemoveThis@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"

 >> Stay informed about: Strange behavior of 'exists' function. Need help with Make.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
php-extensions strange behavior on make package-recursive - -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi everyone, I'm having a problem with php-exetensions port. I have latests ports tree on STABLE - 6.1 I've just made portsnap fetch extract then I entered to /usr/ports/devel/php-exetensions then make..

Strange plugger behavior - An annoyance with plugger - it's been cropping up since at least 5.1.2 and is certainly present in 5.1.3. Briefly, at some seemingly random interval, plugger triggers, a control window pops up (the right arrow, vertical parallel lines, square controls),...

Strange behavior of OPTIONS setting - Hello. While setting up newly installed 6.1-RELEASE-p11 box, I found strange behavior of OPTIONS setting. Let's behindume port A and port B meet following conditions: * A depends on B. * Both A and B have OPTIONS setting. * Either A or B are never..

strange (?) behavior with master site group - --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I found something strange when I use master site group rules I had to explicitly write down DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:group1 \..

make search name gives strange results - Hello, Hopefully this is the correct list for such reports/questions. Searching for (editors/)ted, I got some strange results from make. This is how you can reproduce it: make search "name=fields in the order named" Port: # fields in the o...
   FreeBSD Hosting (Home) -> FreeBSD Ports All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]