List Info

Thread: Re: execute command if a dir does not exist




Re: execute command if a dir does not exist
country flaguser name
United States
2007-02-05 09:27:16
Hi John,

I do not have the luxury of using mkdir command for this.
It is a proprietary tool command that creates a dir. and
puts
some information in it. And it does not provide any option
to check
if the directory already exists.

At the end of your article I saw "test -d $(D) ||
mkdir -p $(D)" ..

I think if I replace mkdir -p with the tool command, it
should solve
my problem.

Thanks ..

>From: John Graham-Cumming <jgcjgc.org>
>Reply-To: jgcjgc.org
>To: sharan basappa <sharanbrhotmail.com>
>CC: help-makegnu.org
>Subject: Re: execute command if a dir does not exist
>Date: Mon, 05 Feb 2007 09:57:48 +0100
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>sharan basappa wrote:
> > Background : The tool I am using stores its
internal information in a
> > directory.
> > The very first time, we are supposed to create
this directory using 
>tool's
> > command. But this is only the first time alone.
> >
> > Question : How can I write a rule such that a
specific command is
> > executed if
> > a directory does not exist under directory from
which make is getting
> > executed.
>
>This topics comes up a lot, I wrote an article
summarizing many of the
>options:
>
>ht
tp://www.cmcrossroads.com/content/view/6936/120/
>
>John.
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.2.2 (GNU/Linux)
>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

>
>iD8DBQFFxvGLLphrp73n/hARAreTAKCbJacacWAmlFfoFC8bHNgNkRhd
UgCfWL0v
>O64iDHoGdaoKnnwXNt3MKOc=
>=THMu
>-----END PGP SIGNATURE-----

____________________________________________________________
_____
Tickle your funny bone with Rahul Phondke 
http://content.msn.co.in/Lifestyle
/Moreonlifestyle/LifestyleFB_101106_1455.htm



_______________________________________________
Help-make mailing list
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )