]> dev.renevier.net Git - syp.git/commitdiff
removes unused openlayers files in build result
authorarno <arenevier@fdn.fr>
Wed, 22 Jul 2009 22:03:44 +0000 (00:03 +0200)
committerarno <arenevier@fdn.fr>
Wed, 22 Jul 2009 22:03:44 +0000 (00:03 +0200)
build.sh

index 5b8711ce2611299c44a9d306c7c8cc1ac3974de6..b51f8fb59ed7126484e2c2f47d7ffb74d9f9976b 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -26,8 +26,25 @@ cd openlayers/build/
 python build.py ../../syp.cfg
 cd ../../
 cp -RLp openlayers/build/OpenLayers.js $DESTDIR/openlayers/
 python build.py ../../syp.cfg
 cd ../../
 cp -RLp openlayers/build/OpenLayers.js $DESTDIR/openlayers/
-cp -RLp openlayers/img/ $DESTDIR/openlayers/
-cp -RLp openlayers/theme/ $DESTDIR/openlayers/
+
+# openlayers images
+mkdir $DESTDIR/openlayers/img
+for file in east-mini.png \
+            marker-gold.png \
+            north-mini.png \
+            west-mini.png \
+            zoom-plus-mini.png \
+            marker-blue.png \
+            marker-green.png \
+            south-mini.png \
+            zoom-minus-mini.png \
+            zoom-world-mini.png; do
+    cp -p openlayers/img/$file $DESTDIR/openlayers/img
+done
+# openlayers theme
+mkdir -p $DESTDIR/openlayers/theme/default/img
+cp -Lp openlayers/theme/default/style.css $DESTDIR/openlayers/theme/default/style.css
+cp -RLp openlayers/theme/default/img/close.gif $DESTDIR/openlayers/theme/default/img
 
 # other javascript
 cp -RLp js/ $DESTDIR/
 
 # other javascript
 cp -RLp js/ $DESTDIR/