I wanted OURmakefile and OURmakefile.TEMPLATE. I could not use a
standard wildcard because I'd pull in svn files.
To get the wildcard for find I tried many differences of the following
with no luck.
[DEVEL PERL]$ ls OURmakefil[{e},{e.TEMPLATE}]
OURmakefile
[DEVEL PERL]$
[DEVEL PERL]$ ls -l OURmakefile*
-rw-rw-r-- 1 cfowler cfowler 3203 Mar 25 21:53 OURmakefile
-rw-rw-r-- 1 cfowler cfowler 63 Mar 21 13:16 OURmakefile.inc
-rw-rw-r-- 1 cfowler cfowler 563 Mar 26 15:29 OURmakefile.TEMPLATE
[DEVEL PERL]$
Ignore .inc
So what is the secret sauce?
Chris
_______________________________________________
Ale mailing list
A...@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Why people can't keep things simple I do not know. I'm talking about:
all-recursive, clean-am, all-am, yada yada yada.
Oh yea, why is make not good enough for Java? Is it because the syntax
is so cryptic that Ant had to be created? I only say this from
experience. I tried to craft a whole build process in Perl for this
project and after going back to the GNU Make manual I've ditched it and
went back to make. :P
This:
ls OURmakefile{,.TEMPLATE}
Square brackets are for matching char sets, not string sets.
And have you looked at cmake?
Jim.
ecashin@Ed-Cashins-MacBook-Pro tmp$ find . -name 'OURmak*'
./.svn/OURmakefile
./.svn/OURmakefile.TEMPLATE
./foo/OURmakefile
./foo/OURmakefile.TEMPLATE
./OURmakefile
./OURmakefile.not_me
ecashin@Ed-Cashins-MacBook-Pro tmp$ cat om.sh
find . \( -type d -name .svn -prune -false \) \
-o \( -type d -name .git -prune -false \) \
-o \( -type d -name .hg -prune -false \) \
-o \( -type f -name 'OURmakefile' -print \) \
-o \( -type f -name 'OURmakefile.TEMPLATE' -print \)
ecashin@Ed-Cashins-MacBook-Pro tmp$ sh om.sh
./foo/OURmakefile
./foo/OURmakefile.TEMPLATE
./OURmakefile
ecashin@Ed-Cashins-MacBook-Pro tmp$
--
Ed Cashin <eca...@noserose.net>
http://noserose.net/e/
http://www.coraid.com/