Author Topic: adding /bin to trunk  (Read 1523 times)

Offline PhyrePhoX

  • Global Moderator
  • Guru Member
  • *****
  • Posts: 2254
  • make RAW not WAR
    • PhyreWorX
adding /bin to trunk
« on: 07 / February / 2008, 18:38:35 »
Hi,

really a small thing here, but could one of you devs please add the (empty) bin folder to the trunk? i always forget to add the folder before compiling, so compiling throws an error.
i can live without it, but with the bin folder already in trunk i could live much happier ever after ;)

Offline whim

  • Guru Member
  • ******
  • Posts: 1957
  • A620/A630/A590-101b/i70-101b/i870-101a/i300
Re: adding /bin to trunk
« Reply #1 on: 07 / February / 2008, 19:12:35 »
I agree with phyrephox - especially since AFAIK just adding a dummy file
to the bin dir should do the trick ...

btw, since this is my first post after 3 months of lurking, let me add
that this is a great forum ! Kudo's & big thanks to everybody working
on / brainstorming about CHDK !

Offline GrAnd

  • Developers
  • Hero Member
  • ****
  • Posts: 916
  • [A610, S3IS]
    • CHDK
Re: adding /bin to trunk
« Reply #2 on: 07 / February / 2008, 21:00:20 »
One small remark.
This folder is created normally in case of using SVN. But if you download the CHDK sources using autopacking to zip feature of assembla site, the 'bin' folder is not in the archive (ZIP does not keep empty folders in archive).
CHDK Developer.

Offline PhyrePhoX

  • Global Moderator
  • Guru Member
  • *****
  • Posts: 2254
  • make RAW not WAR
    • PhyreWorX
Re: adding /bin to trunk
« Reply #3 on: 08 / February / 2008, 02:13:04 »
hm, makes sense. i switched to svn today (not because of that) so i will not have that "problem" in the future. but maybe adding a tiny dummy file might help those who dont use svn and want to compile only occasionally. dunno, in this case they can create /bin themselves, i know. can't it be added to the makefile, that bin is created if not existing? questions, lots of questions :D

Offline GrAnd

  • Developers
  • Hero Member
  • ****
  • Posts: 916
  • [A610, S3IS]
    • CHDK
Re: adding /bin to trunk
« Reply #4 on: 08 / February / 2008, 02:42:03 »
can't it be added to the makefile, that bin is created if not existing?
Piece of cake. :)
Just add into the 'firsub:' section of the topmost Makefile:
Code: [Select]
firsub: all
@echo \-\> $(PLATFORM)-$(PLATFORMSUB).FIR
[color=green]mkdir -p $(topdir)/bin[/color]
« Last Edit: 08 / February / 2008, 12:06:27 by GrAnd »
CHDK Developer.

Offline PhyrePhoX

  • Global Moderator
  • Guru Member
  • *****
  • Posts: 2254
  • make RAW not WAR
    • PhyreWorX
Re: adding /bin to trunk
« Reply #5 on: 08 / February / 2008, 03:11:01 »
works like a charm (on linux box here).
well, can this small change then be added in the trunk? not that i want to take some of your precious time :)

Offline PhyrePhoX

  • Global Moderator
  • Guru Member
  • *****
  • Posts: 2254
  • make RAW not WAR
    • PhyreWorX
Re: adding /bin to trunk
« Reply #6 on: 17 / February / 2008, 04:35:52 »
revision 301:
Quote
...
+ Added autocreation of /bin directory

thanks!  :)

Offline whim

  • Guru Member
  • ******
  • Posts: 1957
  • A620/A630/A590-101b/i70-101b/i870-101a/i300
Re: adding /bin to trunk
« Reply #7 on: 17 / February / 2008, 17:35:36 »
@GrAndiose !   :D

I got a (somewhat) related question, why does the makefile do a

rm -f $(topdir)bin/PS.FIR     but not a

rm -f $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB).FIR  ?

(can easily add it myself, but just curious)

thanks 

Offline GrAnd

  • Developers
  • Hero Member
  • ****
  • Posts: 916
  • [A610, S3IS]
    • CHDK
Re: adding /bin to trunk
« Reply #8 on: 17 / February / 2008, 19:39:47 »
2whim

Because all fir-files have unique names and it is understandable which is what. The PS.FIR can confuse, because it is not clear for which camera it is.
CHDK Developer.

CHDK Forum

Re: adding /bin to trunk
« Reply #8 on: 17 / February / 2008, 19:39:47 »

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal