r2971 - scripts

frankie at alioth.debian.org frankie at alioth.debian.org
Mon Feb 21 13:26:15 UTC 2011


Author: frankie
Date: 2011-02-21 13:26:09 +0000 (Mon, 21 Feb 2011)
New Revision: 2971

Added:
   scripts/AUTHORS.uu
   scripts/dgis-svn2git
Log:
Adding a couple of useful tools



Added: scripts/AUTHORS.uu
===================================================================
--- scripts/AUTHORS.uu	                        (rev 0)
+++ scripts/AUTHORS.uu	2011-02-21 13:26:09 UTC (rev 2971)
@@ -0,0 +1,14 @@
+begin 644 AUTHORS
+M9G)A;FMI92`]($9R86YC97-C;R!086]L;R!,;W9E<F=I;F4@/&9R86YK:65`
+M9&5B:6%N+F]R9SX*86)O=61R96%U;'0M9W5E<W0@/2!!;&%N($)O=61R96%U
+M;'0@/&%B;W5D<F5A=6QT0&UA<&=E87)S+F-O;3X*:G-A:6YT<RUG=65S="`]
+M($IO;B!386EN=',@/'-A:6YT<VID0'EA:&]O+F-O;3X*:V]B;VQD(#T at 1F%B
+M:6\@5')A;F-H:71E;&QA(#QK;V)O;&1`9&5B:6%N+F]R9SX*<&%B<R`](%!A
+M=6P at 5VES92`\<&%B<T!D96)I86XN;W)G/@IP86)S+6=U97-T(#T at 4&%U;"!7
+M:7-E(#QP86)S0&1E8FEA;BYO<F<^"G!E<F4@/2!0971T97(@4F5I;FAO;&1T
+M<V5N(#QP97)E0&1E8FEA;BYO<F<^"G-H86QA<WHM9W5E<W0@/2!3=&5V92!(
+M86QA<WH@/&1E8FEA;D!A9&MG:7,N;W)G/@IH86UI<V at M9W5E<W0@/2!(86UI
+M<V@@0F]W;6%N(#QH86UI<VA?8D!Y86AO;RYC;VT^"F9O9R`]($9E9&5R:6-O
+>($1I($=R96=O<FEO(#QF;V=`9&5B:6%N+F]R9SX*
+`
+end

Added: scripts/dgis-svn2git
===================================================================
--- scripts/dgis-svn2git	                        (rev 0)
+++ scripts/dgis-svn2git	2011-02-21 13:26:09 UTC (rev 2971)
@@ -0,0 +1,70 @@
+#!/bin/sh
+#
+#       A rough helper script to convert DebianGis SVN repository to git
+#       See http://wiki.debian.org/Alioth/Git#ConvertaSVNAliothrepositorytoGit
+#
+#       Copyright 2011 (C) Francesco P. Lovergine <frankie at debian.org>
+#
+#       This program is free software; you can redistribute it and/or modify
+#       it under the terms of the GNU General Public License as published by
+#       the Free Software Foundation; either version 2 of the License, or
+#       (at your option) any later version.
+#
+#       This program is distributed in the hope that it will be useful,
+#       but WITHOUT ANY WARRANTY; without even the implied warranty of
+#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#       GNU General Public License for more details.
+#
+#       You should have received a copy of the GNU General Public License
+#       along with this program; if not, write to the Free Software
+#       Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+#       On Debian GNU/Linux GPL is available under /usr/share/common-licenses
+
+set -e
+
+if [ $# -ne 2 ]; then
+    echo Usage: $0 package_name upstream_tarball
+    exit 1
+fi
+
+PKG="$1"
+TARBALL=`readlink -f "$2"`
+
+# Collected authors data.
+# svn co http://svn.debian.org/svn/pkg-grass/scripts/AUTHORS.uu
+# Use uudecode to extract the list.
+AUTHORS=$HOME/debian/debian-gis/AUTHORS
+
+[ ! -f $AUTHORS ] && echo "List of authors '$AUTHORS' missing." && exit 1
+
+git svn clone svn+ssh://svn.debian.org/svn/pkg-grass/packages/$PKG --prefix=svn-import/ \
+    --stdlayout --authors-file=$AUTHORS \
+    --no-metadata $PKG
+
+cd $PKG
+
+for branch in `git branch -r`; do
+    if [ `echo $branch | egrep "svn-import/tags/.+$"` ]; then
+        version=`basename $branch`
+        subject=`git log -1 --pretty=format:"%s" $branch`
+        GIT_COMMITTER_DATE=`git log -1 --pretty=format:"%ci" $branch` git tag -f -m "$subject" "debian/$version" "$branch^"
+        git branch -d -r $branch
+    fi
+done
+
+git branch -d -r svn-import/trunk
+git config --remove-section svn-remote.svn
+rm -rf .git/svn .git/{logs/,}refs/remotes/svn/
+
+git config remote.origin.url .
+git config --add remote.origin.fetch +refs/remotes/*:refs/heads/*
+git fetch
+
+git symbolic-ref HEAD refs/heads/upstream
+git rm --cached -r .
+git commit --allow-empty -m 'initial upstream branch'
+git checkout -f master
+git merge upstream
+git-import-orig "$TARBALL"
+


Property changes on: scripts/dgis-svn2git
___________________________________________________________________
Added: svn:executable
   + *




More information about the Pkg-grass-devel mailing list