]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Added subtree script.
authorSem <sembrestels@riseup.net>
Sun, 10 Nov 2013 06:08:17 +0000 (07:08 +0100)
committerSem <sembrestels@riseup.net>
Sun, 10 Nov 2013 06:08:17 +0000 (07:08 +0100)
gpl-plugins [new file with mode: 0644]
subtree.sh [new file with mode: 0755]

diff --git a/gpl-plugins b/gpl-plugins
new file mode 100644 (file)
index 0000000..925ca6e
--- /dev/null
@@ -0,0 +1,20 @@
+videolist
+dokuwiki
+friendrequest
+opensearch
+identica
+languages
+registrationterms
+custom_index_widgets
+river_privacy
+habitorio_theme
+lightpics
+colorbox
+event_calendar
+openid_client
+openid_server
+openid_api
+beechat
+simplepie
+profile_widgets
+html5
diff --git a/subtree.sh b/subtree.sh
new file mode 100755 (executable)
index 0000000..5151bb9
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+command=$1
+branch=$2
+plugin=$3
+
+if [ ! $command ] || [ ! $branch ]; then
+  echo "  Usage:   ./subtree.sh <command> <branch> [<plugin-name>]
+  Example: ./subtree.sh pull develop etherpad"
+  exit
+fi
+
+git checkout $branch
+if [ $plugin ]; then
+  git subtree $command --prefix mod/$plugin git@gitorious.org:lorea/$plugin.git $branch
+else
+  cat *-plugins | while read plugin; do
+    git subtree $command --prefix mod/$plugin git@gitorious.org:lorea/$plugin.git $branch
+  done
+fi