Re: [freenet-dev] [patch] mkdir in Makefile's fproxy target

2002-09-02 Thread Matthew Toseland

On Sun, Sep 01, 2002 at 09:09:12PM -0500, Pascal wrote:
 Actually the current cvs is still missing the -p on the mkdir.  If
 you've fixed this you forgot to commit it.
 
 -Pascal
Isn't mkdir -p gnu specific?
 
 
 Matthew Toseland wrote:
  
  On Sun, Sep 01, 2002 at 09:51:46PM +0200, Robert Bihlmeyer wrote:
   Make bombs out with:
  
   mkdir: cannot create directory `build/freenet/node/http/templates': No such file 
or directory
  
   That's because build/freenet/node/http does not exist yet. Here's the
   obviously correct fix:
  Heh. You're obviously not working from current cvs... I already fixed
  this.
  
  
  
   --
   Robbe
  

 Part 1.2Type: application/pgp-signature
 
 ___
 devl mailing list
 [EMAIL PROTECTED]
 http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl
 



msg03751/pgp0.pgp
Description: PGP signature


Re: [freenet-dev] [patch] mkdir in Makefile's fproxy target

2002-09-02 Thread Pascal

If some systems don't support it you could instead do something along
the lines of:

test -d build || mkdir build
test -d build/freenet || mkdir build/freenet
test -d build/freenet/node || mkdir build/freenet/node
test -d build/freenet/node/http || mkdir build/freenet/node/http
test -d build/freenet/node/http/templates || mkdir
build/freenet/node/http/templates

Not as neat but it should work everywhere.

-Pascal


Matthew Toseland wrote:
 
 On Sun, Sep 01, 2002 at 09:09:12PM -0500, Pascal wrote:
  Actually the current cvs is still missing the -p on the mkdir.  If
  you've fixed this you forgot to commit it.
 
  -Pascal
 Isn't mkdir -p gnu specific?
 
 
  Matthew Toseland wrote:
  
   On Sun, Sep 01, 2002 at 09:51:46PM +0200, Robert Bihlmeyer wrote:
Make bombs out with:
   
mkdir: cannot create directory `build/freenet/node/http/templates': No such 
file or directory
   
That's because build/freenet/node/http does not exist yet. Here's the
obviously correct fix:
   Heh. You're obviously not working from current cvs... I already fixed
   this.
   
  
   
--
Robbe
  
 
  Part 1.2Type: application/pgp-signature
 
  ___
  devl mailing list
  [EMAIL PROTECTED]
  http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl
 
 
   
Part 1.2Type: application/pgp-signature

___
devl mailing list
[EMAIL PROTECTED]
http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl



Re: [freenet-dev] [patch] mkdir in Makefile's fproxy target

2002-09-02 Thread Matthew Toseland

On Mon, Sep 02, 2002 at 03:01:11PM -0500, Pascal wrote:
 If some systems don't support it you could instead do something along
 the lines of:
 
 test -d build || mkdir build
 test -d build/freenet || mkdir build/freenet
 test -d build/freenet/node || mkdir build/freenet/node
 test -d build/freenet/node/http || mkdir build/freenet/node/http
 test -d build/freenet/node/http/templates || mkdir
 build/freenet/node/http/templates
 
 Not as neat but it should work everywhere.
Yes but there are already about six occurrances of mkdir -p in the
makefile, before I added this particular one.
 
 -Pascal
 



msg03760/pgp0.pgp
Description: PGP signature


Re: [freenet-dev] [patch] mkdir in Makefile's fproxy target

2002-09-02 Thread Greg Wooledge

  test -d build || mkdir build
  test -d build/freenet || mkdir build/freenet
  test -d build/freenet/node || mkdir build/freenet/node
  test -d build/freenet/node/http || mkdir build/freenet/node/http
  test -d build/freenet/node/http/templates || mkdir
  build/freenet/node/http/templates

I think the correct approach would be to copy the mkinstalldirs script
from any GNU autoconf program and use that.  That's what it's *for*.
It's in the public domain, so license is a non-issue.

-- 
Greg Wooledge  |   Truth belongs to everybody.
[EMAIL PROTECTED]  |- The Red Hot Chili Peppers
http://wooledge.org/~greg/ |



msg03763/pgp0.pgp
Description: PGP signature


Re: [freenet-dev] [patch] mkdir in Makefile's fproxy target

2002-09-02 Thread Robert Bihlmeyer

Matthew Toseland [EMAIL PROTECTED] writes:

 Isn't mkdir -p gnu specific?

It's in the Single Unix Spec v2, and I'd bet in POSIX, too. Every
non-ancient system should have it.

-- 
Robbe



signature.ng
Description: PGP signature


Re: [freenet-dev] [patch] mkdir in Makefile's fproxy target

2002-09-01 Thread Matthew Toseland

On Sun, Sep 01, 2002 at 09:51:46PM +0200, Robert Bihlmeyer wrote:
 Make bombs out with:
 
 mkdir: cannot create directory `build/freenet/node/http/templates': No such file or 
directory
 
 That's because build/freenet/node/http does not exist yet. Here's the
 obviously correct fix:
Heh. You're obviously not working from current cvs... I already fixed
this.
 


 
 -- 
 Robbe






msg03740/pgp0.pgp
Description: PGP signature


Re: [freenet-dev] [patch] mkdir in Makefile's fproxy target

2002-09-01 Thread Pascal

Actually the current cvs is still missing the -p on the mkdir.  If
you've fixed this you forgot to commit it.

-Pascal


Matthew Toseland wrote:
 
 On Sun, Sep 01, 2002 at 09:51:46PM +0200, Robert Bihlmeyer wrote:
  Make bombs out with:
 
  mkdir: cannot create directory `build/freenet/node/http/templates': No such file 
or directory
 
  That's because build/freenet/node/http does not exist yet. Here's the
  obviously correct fix:
 Heh. You're obviously not working from current cvs... I already fixed
 this.
 
 
 
  --
  Robbe
 
   
Part 1.2Type: application/pgp-signature

___
devl mailing list
[EMAIL PROTECTED]
http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl