From a67ada15f3d5574fbf9888816a74945170195044 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 12 May 2015 21:35:30 -0700 Subject: repo updaters --- util/add_widget_repo | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 util/add_widget_repo (limited to 'util/add_widget_repo') diff --git a/util/add_widget_repo b/util/add_widget_repo new file mode 100755 index 000000000..460191503 --- /dev/null +++ b/util/add_widget_repo @@ -0,0 +1,35 @@ +#!/bin/sh -f + +if [ $# -ne 2 ]; then + echo usage: $0 repo_url nickname + exit 1 +fi + +mkdir -p extend/widget/$2 +mkdir addon > /dev/null 2>&1 +git clone $1 extend/widget/$2 +if [ $? -ne 0 ]; then + exit $? +fi + +filelist=(`ls extend/widget/$2`) + + +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/$2/$base $base +done + + -- cgit v1.2.3