diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bd9e6617827818fd043452c08c606f07b78014a0 (patch) | |
tree | 425bb4c3168f9c02f10150f235d2cb998dcc6108 /cervisia/move_repositories.pl | |
download | tdesdk-bd9e6617827818fd043452c08c606f07b78014a0.tar.gz tdesdk-bd9e6617827818fd043452c08c606f07b78014a0.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'cervisia/move_repositories.pl')
-rw-r--r-- | cervisia/move_repositories.pl | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/cervisia/move_repositories.pl b/cervisia/move_repositories.pl new file mode 100644 index 00000000..c38b352d --- /dev/null +++ b/cervisia/move_repositories.pl @@ -0,0 +1,42 @@ +#!/usr/bin/perl + +$DEBUG = 0; + +while(<>) +{ + if( /\[(Repository-.*)\]/ ) + { + # remember group section + $section = $1; + print "[$section]\n"; + next; + } + if( /\[(.*)\]/ ) + { + # clear section variable for other groups + $section = ""; + next; + } + if( /^Compression=(.*)$/ ) + { + # skip if not in repository group + if( $section eq "" ) + { + next; + } + + print STDERR "\n[$section]Compression=$1\n" if ( $DEBUG ); + print "Compression=$1\n"; + } + if( /^rsh=(.*)$/ ) + { + # skip if not in repository group + if( $section eq "" ) + { + next; + } + + print STDERR "\n[$section]rsh=$1\n" if ( $DEBUG ); + print "rsh=$1\n"; + } +} |