From adf5420ef563f7ba9db7c8759e9f540922d3e68b Mon Sep 17 00:00:00 2001 From: Sem Date: Sun, 10 Nov 2013 07:08:17 +0100 Subject: Added subtree script. --- gpl-plugins | 20 ++++++++++++++++++++ subtree.sh | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 gpl-plugins create mode 100755 subtree.sh diff --git a/gpl-plugins b/gpl-plugins new file mode 100644 index 000000000..925ca6ec2 --- /dev/null +++ b/gpl-plugins @@ -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 index 000000000..5151bb92c --- /dev/null +++ b/subtree.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +command=$1 +branch=$2 +plugin=$3 + +if [ ! $command ] || [ ! $branch ]; then + echo " Usage: ./subtree.sh [] + 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 -- cgit v1.2.3