Author Topic: Makefile option to ZIP folder and all its contents  (Read 1441 times)

Offline Microfunguy

  • Developers
  • Guru Member
  • ****
  • Posts: 3205
    • StereoData Maker
Makefile option to ZIP folder and all its contents
« on: 01 / July / 2008, 16:44:38 »
  • Publish
  • I am sure that I have been able to do this previously but have lost the details.


    How do I add a folder and its contents to the ZIP file ?


    David

    Offline ewavr

    • Developers
    • Hero Member
    • ****
    • Posts: 1057
    • A710IS
    Re: Makefile option to ZIP folder and all its contents
    « Reply #1 on: 01 / July / 2008, 16:56:36 »
  • Publish
  • For example, adding "lang" folder with all subfolders:

    Code: Diff
    1. Index: Makefile
    2. ===================================================================
    3. @@ -62,6 +62,7 @@
    4.         rm -f $(topdir)bin/$(VER)-$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER).zip
    5.         LANG=C echo -e "CHDK-$(VER) for $(PLATFORM) fw:$(PLATFORMSUB) build:$(BUILD_NUMBER) date:`date -R`" | \
    6.             zip -9jz $(topdir)bin/$(VER)-$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER).zip $(topdir)bin/DISKBOOT.BIN > $(DEVNULL)
    7. +           zip -9r $(topdir)bin/$(VER)-$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER).zip $(topdir)lang/*
    8.  ifdef PLATFORMOS
    9.    ifeq ($(PLATFORMOS),vxworks)
    10.         cp $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB).FIR $(topdir)bin/PS.FIR
    11.  
    12.  

    updated!
    « Last Edit: 01 / July / 2008, 17:06:40 by ewavr »

    Offline Microfunguy

    • Developers
    • Guru Member
    • ****
    • Posts: 3205
      • StereoData Maker
    Re: Makefile option to ZIP folder and all its contents
    « Reply #2 on: 01 / July / 2008, 17:20:40 »
  • Publish
  • Thanks Ewavr, I eventually worked it out  :)

    I had accidentally missed a bracket.

    It works fine now.


    David

    Offline PhyrePhoX

    • Global Moderator
    • Guru Member
    • *****
    • Posts: 2254
    • make RAW not WAR
      • PhyreWorX
    Re: Makefile option to ZIP folder and all its contents
    « Reply #3 on: 01 / July / 2008, 17:22:06 »
  • Publish
  • hehe, i am preparing something like this as well, thanks for the heads up :)

     


    SimplePortal 2.3.3 © 2008-2010, SimplePortal