Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
21 / May / 2012, 07:35:10
Home
Forum
Help
Search
Downloads
Facebook
Login
Register
CHDK Forum
»
CHDK Development
»
General Discussion and Assistance
»
Makefile option to ZIP folder and all its contents
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Makefile option to ZIP folder and all its contents (Read 1441 times)
Microfunguy
Developers
Guru Member
Posts: 3205
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
Logged
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
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
updated!
«
Last Edit: 01 / July / 2008, 17:06:40 by ewavr
»
Logged
Microfunguy
Developers
Guru Member
Posts: 3205
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
Logged
PhyrePhoX
Global Moderator
Guru Member
Posts: 2254
make RAW not WAR
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
Logged
Flickr*
www.PhyreWorX.de
CHDK News @ Twitter
Print
Pages: [
1
]
Go Up
« previous
next »
CHDK Forum
»
CHDK Development
»
General Discussion and Assistance
»
Makefile option to ZIP folder and all its contents
SimplePortal 2.3.3 © 2008-2010, SimplePortal