aboutsummaryrefslogtreecommitdiffstats
path: root/util/update_widget_repo
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-12 21:35:30 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-12 21:35:30 -0700
commita67ada15f3d5574fbf9888816a74945170195044 (patch)
tree42f10d30ef41245d9f296bd740b32c0326861d74 /util/update_widget_repo
parent1e0e812440b8b87c39a88692e39eb0baca736b6e (diff)
downloadvolse-hubzilla-a67ada15f3d5574fbf9888816a74945170195044.tar.gz
volse-hubzilla-a67ada15f3d5574fbf9888816a74945170195044.tar.bz2
volse-hubzilla-a67ada15f3d5574fbf9888816a74945170195044.zip
repo updaters
Diffstat (limited to 'util/update_widget_repo')
-rwxr-xr-xutil/update_widget_repo35
1 files changed, 35 insertions, 0 deletions
diff --git a/util/update_widget_repo b/util/update_widget_repo
new file mode 100755
index 000000000..c00c85708
--- /dev/null
+++ b/util/update_widget_repo
@@ -0,0 +1,35 @@
+#!/bin/sh -f
+
+if [ $# -ne 1 ]; then
+ echo usage: $0 repository
+ echo "Repositories:"
+ ls extend/widget
+ exit 1
+fi
+
+cd extend/widget/$1
+
+if [ -d .git ] ; then
+ git pull
+fi
+
+cd ../../..
+
+filelist=(`ls extend/widget/$1`)
+
+cd widget
+
+for a in "${filelist[@]}" ; do
+ base=`basename $a`
+ if [ $base = '.git' ]; then
+# echo 'ignoring git'
+ continue;
+ fi
+ if [ -x $base ]; then
+# echo $base 'file exists'
+ continue;
+ fi
+
+ echo linking $base
+ ln -s ../extend/widget/$1/$base $base
+done