aboutsummaryrefslogtreecommitdiffstats
path: root/update_demos_svn.sh
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2010-06-14 08:07:21 +0000
committerManolo Carrasco <manolo@apache.org>2010-06-14 08:07:21 +0000
commit649fd7a19d6cd73fd3079541a333898bcd8759b8 (patch)
tree960d84b4e646f0c42946f0af51928f3fe354acc4 /update_demos_svn.sh
parentd027aac3f6d662fbbafd8e9d08c7b38bf57998fa (diff)
downloadgwtquery-649fd7a19d6cd73fd3079541a333898bcd8759b8.tar.gz
gwtquery-649fd7a19d6cd73fd3079541a333898bcd8759b8.zip
added a utility script to update demos in the svn repository
Diffstat (limited to 'update_demos_svn.sh')
-rw-r--r--update_demos_svn.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/update_demos_svn.sh b/update_demos_svn.sh
new file mode 100644
index 00000000..b0ec6bc6
--- /dev/null
+++ b/update_demos_svn.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# Script to update demos deployed in svn
+
+V=1.0.0-SNAPSHOT
+
+cp -r samples/target/gwtquery-samples-$V/gwtquery* demos/
+cp -r samples/target/gwtquery-samples-$V/index.html demos/
+
+for i in `find demos -type d | grep -v .svn | sed -e 's#^demos/##g'`
+do
+ [ ! -d samples/target/gwtquery-samples-$V/$i ] && svn delete demos/$i
+done
+
+for i in `find demos -type f | grep -v .svn | sed -e 's#^demos/##g'`
+do
+ [ ! -f samples/target/gwtquery-samples-$V/$i ] && svn delete demos/$i
+done
+
+find demos -type f | grep -v .svn | xargs svn add
+
+find demos -type f -name "*html" -exec svn propset svn:mime-type text/html '{}' ';'