Pages: [1]   Go Down
  Print  
Author Topic: Makefile option to ZIP folder and all its contents  (Read 899 times)
0 Members and 1 Guest are viewing this topic.
Microfunguy
Developers
Sr. Member
****

Karma: +79/-106
Offline Offline

Posts: 436


« on: 01 / July / 2008, 12:44:38 »

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
Logged
ewavr
Developers
Hero Member
****

Karma: +138/-1
Offline Offline

Posts: 652

A710IS


« Reply #1 on: 01 / July / 2008, 12:56:36 »

For example, adding "lang" folder with all subfolders:

Code
GeSHi (diff):
Index: Makefile
===================================================================
@@ -62,6 +62,7 @@
rm -f $(topdir)bin/$(VER)-$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER).zip
LANG=C echo -e "CHDK-$(VER) for $(PLATFORM) fw:$(PLATFORMSUB) build:$(BUILD_NUMBER) date:`date -R`" | \
   zip -9jz $(topdir)bin/$(VER)-$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER).zip $(topdir)bin/DISKBOOT.BIN > $(DEVNULL)
+    zip -9r $(topdir)bin/$(VER)-$(PLATFORM)-$(PLATFORMSUB)-$(BUILD_NUMBER).zip $(topdir)lang/*
ifdef PLATFORMOS
  ifeq ($(PLATFORMOS),vxworks)
cp $(topdir)bin/$(PLATFORM)-$(PLATFORMSUB).FIR $(topdir)bin/PS.FIR
 
 
Created by GeSHI 1.0.7.20

updated!
« Last Edit: 01 / July / 2008, 13:06:40 by ewavr » Logged
Microfunguy
Developers
Sr. Member
****

Karma: +79/-106
Offline Offline

Posts: 436


« Reply #2 on: 01 / July / 2008, 13:20:40 »

Thanks Ewavr, I eventually worked it out  Smiley

I had accidentally missed a bracket.

It works fine now.


David
Logged
PhyrePhoX
Global Moderator
Hero Member
*****

Karma: +139/-37
Offline Offline

Posts: 1818


Coders Humiliate DSLR Kiddies


« Reply #3 on: 01 / July / 2008, 13:22:06 »

hehe, i am preparing something like this as well, thanks for the heads up Smiley
Logged

Pages: [1]   Go Up
  Print  
 
Jump to: