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

Andreas Tille tille at moszumanska.debian.org
Fri Oct 6 06:30:50 UTC 2017


Author: tille
Date: 2017-10-06 06:30:48 +0000 (Fri, 06 Oct 2017)
New Revision: 24305

Added:
   trunk/helper-scripts/convert_svn_2_git_R
Log:
Add script for converting R packages that are in R subdir


Added: trunk/helper-scripts/convert_svn_2_git_R
===================================================================
--- trunk/helper-scripts/convert_svn_2_git_R	                        (rev 0)
+++ trunk/helper-scripts/convert_svn_2_git_R	2017-10-06 06:30:48 UTC (rev 24305)
@@ -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-med/trunk/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_R
___________________________________________________________________
Added: svn:executable
   + *




More information about the debian-med-commit mailing list