[med-svn] r24145 - trunk/helper-scripts

Andreas Tille tille at moszumanska.debian.org
Fri Sep 29 06:44:41 UTC 2017


Author: tille
Date: 2017-09-29 06:44:41 +0000 (Fri, 29 Sep 2017)
New Revision: 24145

Added:
   trunk/helper-scripts/convert_svn_2_git_science
Log:
If somebody wants to convert things from Debian science ...


Added: trunk/helper-scripts/convert_svn_2_git_science
===================================================================
--- trunk/helper-scripts/convert_svn_2_git_science	                        (rev 0)
+++ trunk/helper-scripts/convert_svn_2_git_science	2017-09-29 06:44:41 UTC (rev 24145)
@@ -0,0 +1,25 @@
+#!/bin/sh
+# You need to install git-svn to run this script
+
+export SVN_URL=svn://svn.debian.org/svn/debian-science/packages/R/
+if [ $# != 1 ] ; then
+    echo "Usage: $0 <package to convert>"
+    exit
+fi
+export PKG=$1
+
+git svn clone \
+    ${SVN_URL}/${PKG} \
+    -T /trunk/${PKG} \
+    --tags  tags \
+    --trunk trunk \
+    --authors-file=debian-med-authors \
+    --prefix=svn-import/ \
+    --no-metadata \
+    ${PKG} 2>&1 | tee >> svn2git_${PKG}.log
+
+cat <<EOT
+In case of failure use
+   gbp import-dscs --debsnap --pristine-tar $PKG
+to create a somehow sensible Git repository.
+EOT


Property changes on: trunk/helper-scripts/convert_svn_2_git_science
___________________________________________________________________
Added: svn:executable
   + *




More information about the debian-med-commit mailing list