Patch #2480 2008-05-24 13:10

jenslody

Speedup update-script on linux
Download
2480-Speedup_update.patch (9.1 KB)
Category
 
Status
Accepted
Close date
2008-06-08 13:38
Assigned to
biplab
--- codeblocks-1.0svn.orig/src/update    2008-06-07 12:04:42.000000000 +0200
+++ codeblocks-1.0svn.work/src/update    2008-06-07 22:28:49.000000000 +0200
@@ -30,31 +30,31 @@
 ZIPCMD="zip"
 RESDIR="devel/share/codeblocks"
 echo Compressing core UI resources
-${ZIPCMD} -j9 ${RESDIR}/resources.zip src/resources/*.xrc > /dev/null
-${ZIPCMD} -j9 ${RESDIR}/manager_resources.zip sdk/resources/*.xrc sdk/resources/images/*.png > /dev/null
-${ZIPCMD} -j9 ${RESDIR}/start_here.zip src/resources/start_here/* > /dev/null
+${ZIPCMD} -jqu9 ${RESDIR}/resources.zip src/resources/*.xrc > /dev/null
+${ZIPCMD} -jqu9 ${RESDIR}/manager_resources.zip sdk/resources/*.xrc sdk/resources/images/*.png > /dev/null
+${ZIPCMD} -jqu9 ${RESDIR}/start_here.zip src/resources/start_here/* > /dev/null
 echo Compressing plugins UI resources
-${ZIPCMD} -j9 ${RESDIR}/astyle.zip plugins/astyle/resources/manifest.xml plugins/astyle/resources/*.xrc > /dev/null
-${ZIPCMD} -j9 ${RESDIR}/autosave.zip plugins/autosave/manifest.xml plugins/autosave/*.xrc > /dev/null
-${ZIPCMD} -j9 ${RESDIR}/classwizard.zip plugins/classwizard/resources/manifest.xml plugins/classwizard/resources/*.xrc > /dev/null
-${ZIPCMD} -j9 ${RESDIR}/codecompletion.zip plugins/codecompletion/resources/manifest.xml plugins/codecompletion/resources/*.xrc > /dev/null
-${ZIPCMD} -j9 ${RESDIR}/compiler.zip plugins/compilergcc/resources/manifest.xml plugins/compilergcc/resources/*.xrc > /dev/null
-${ZIPCMD} -j9 ${RESDIR}/defaultmimehandler.zip plugins/defaultmimehandler/resources/manifest.xml plugins/defaultmimehandler/resources/*.xrc > /dev/null
-${ZIPCMD} -j9 ${RESDIR}/openfileslist.zip plugins/openfileslist/manifest.xml > /dev/null
-${ZIPCMD} -j9 ${RESDIR}/projectsimporter.zip plugins/projectsimporter/resources/*.xrc plugins/projectsimporter/resources/manifest.xml > /dev/null
-${ZIPCMD} -j9 ${RESDIR}/debugger.zip plugins/debuggergdb/resources/manifest.xml plugins/debuggergdb/resources/*.xrc > /dev/null
-${ZIPCMD} -j9 ${RESDIR}/scriptedwizard.zip plugins/scriptedwizard/resources/manifest.xml > /dev/null
-${ZIPCMD} -j9 ${RESDIR}/todo.zip plugins/todo/resources/manifest.xml plugins/todo/resources/*.xrc > /dev/null
+${ZIPCMD} -jqu9 ${RESDIR}/astyle.zip plugins/astyle/resources/manifest.xml plugins/astyle/resources/*.xrc > /dev/null
+${ZIPCMD} -jqu9 ${RESDIR}/autosave.zip plugins/autosave/manifest.xml plugins/autosave/*.xrc > /dev/null
+${ZIPCMD} -jqu9 ${RESDIR}/classwizard.zip plugins/classwizard/resources/manifest.xml plugins/classwizard/resources/*.xrc > /dev/null
+${ZIPCMD} -jqu9 ${RESDIR}/codecompletion.zip plugins/codecompletion/resources/manifest.xml plugins/codecompletion/resources/*.xrc > /dev/null
+${ZIPCMD} -jqu9 ${RESDIR}/compiler.zip plugins/compilergcc/resources/manifest.xml plugins/compilergcc/resources/*.xrc > /dev/null
+${ZIPCMD} -jqu9 ${RESDIR}/defaultmimehandler.zip plugins/defaultmimehandler/resources/manifest.xml plugins/defaultmimehandler/resources/*.xrc > /dev/null
+${ZIPCMD} -jqu9 ${RESDIR}/openfileslist.zip plugins/openfileslist/manifest.xml > /dev/null
+${ZIPCMD} -jqu9 ${RESDIR}/projectsimporter.zip plugins/projectsimporter/resources/*.xrc plugins/projectsimporter/resources/manifest.xml > /dev/null
+${ZIPCMD} -jqu9 ${RESDIR}/debugger.zip plugins/debuggergdb/resources/manifest.xml plugins/debuggergdb/resources/*.xrc > /dev/null
+${ZIPCMD} -jqu9 ${RESDIR}/scriptedwizard.zip plugins/scriptedwizard/resources/manifest.xml > /dev/null
+${ZIPCMD} -jqu9 ${RESDIR}/todo.zip plugins/todo/resources/manifest.xml plugins/todo/resources/*.xrc > /dev/null
 echo Packing core UI bitmaps
 cd src/resources
-${ZIPCMD} -0 ../../${RESDIR}/resources.zip images/*.png images/16x16/*.png > /dev/null
+${ZIPCMD} -0 -qu ../../${RESDIR}/resources.zip images/*.png images/16x16/*.png > /dev/null
 #cd ../../sdk/resources
-#${ZIPCMD} -0 ../../${RESDIR}/manager_resources.zip images/*.png > /dev/null
+#${ZIPCMD} -0 -qu ../../${RESDIR}/manager_resources.zip images/*.png > /dev/null
 echo Packing plugins UI bitmaps
 cd ../../plugins/compilergcc/resources
-${ZIPCMD} -0 ../../../${RESDIR}/compiler.zip images/*.png images/16x16/*.png > /dev/null
+${ZIPCMD} -0 -qu ../../../${RESDIR}/compiler.zip images/*.png images/16x16/*.png > /dev/null
 cd ../../../plugins/debuggergdb/resources
-${ZIPCMD} -0 ../../../${RESDIR}/debugger.zip images/*.png images/16x16/*.png > /dev/null
+${ZIPCMD} -0 -qu ../../../${RESDIR}/debugger.zip images/*.png images/16x16/*.png > /dev/null
 cd ../../..
 
 echo Copying files
@@ -63,41 +63,41 @@
 echo Makefile >> excludes.txt
 echo Makefile.am >> excludes.txt
 echo Makefile.in >> excludes.txt
-cp -f ${RESDIR}/*.zip output/share/codeblocks > /dev/null
-cp -f sdk/resources/lexers/lexer_* ${RESDIR}/lexers > /dev/null
-cp -f sdk/resources/lexers/lexer_* output/share/codeblocks/lexers > /dev/null
-cp -f src/resources/images/*.png ${RESDIR}/images > /dev/null
-cp -f src/resources/images/settings/*.png ${RESDIR}/images/settings > /dev/null
-cp -f src/resources/images/*.png output/share/codeblocks/
download for full patch...
jenslody 2008-05-24 13:12

Similiar to patch #2452 for windows submitted by rhf.

Additionally the executables get stripped after copying them to output directory.

jenslody 2008-06-07 20:36

Added "-q" option to zip-command to avoid warning if copying is done the first time, the "-u" (update) option leads to the warning that the archive that should be updated is empty or does not exist.

biplab 2008-06-08 13:38

Thanks for you patch.