[khronos-opencl-headers] 03/04: import from snapshot.debian.org
Andreas Beckmann
anbe at moszumanska.debian.org
Mon Sep 21 02:38:57 UTC 2015
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch from-svn-to-git
in repository khronos-opencl-headers.
commit cc70ba63e3490f880797ff96df84117c7d85329f
Author: Andreas Beckmann <anbe at debian.org>
Date: Mon Sep 21 03:06:42 2015 +0200
import from snapshot.debian.org
---
03-import-snapshot | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/03-import-snapshot b/03-import-snapshot
new file mode 100755
index 0000000..8c6aed6
--- /dev/null
+++ b/03-import-snapshot
@@ -0,0 +1,51 @@
+#!/bin/sh
+set -e
+#set -x
+
+lib=svn-to-git.utils.sh
+self=$(readlink -f $0)
+selflib=$(dirname $self)/$lib
+. "$selflib"
+
+test -n "$1" || exit 0
+test -d "$1" || exit 0
+test -n "$2" || exit 0
+test ! -d "$2" || exit 0
+
+cp -a "$1" "$2"
+
+sourcepkg=khronos-opencl-headers
+
+test -d snapshot || debsnap -v -d snapshot $sourcepkg
+snapshot=$(readlink -f snapshot)
+
+cd "$2"
+
+git branch -m master trunk
+
+for tag in $(git tag --list 'debian-svn/*')
+do
+ version=$(basename "$tag" | tr "_%" "~:")
+ dsc=$snapshot/${sourcepkg}_${version}.dsc
+ git authorcommitteremaildate-from-dsc $dsc \
+ git-import-dsc \
+ --create-missing-branches \
+ --pristine-tar \
+ --debian-branch="snapshot" \
+ --debian-tag="snapshot/%(version)s" \
+ $dsc
+done
+
+reparent upstream/1.0-2010.06.13
+reparent snapshot/1.0-2010.06.13-1 upstream/1.0-2010.06.13
+reparent snapshot/1.2-2012.11.30-1 snapshot/1.2-2012.04.18a-1 upstream/1.2-2012.11.30
+reparent snapshot/1.2-2013.10.23-1 snapshot/1.2-2013.06.28-2 upstream/1.2-2013.10.23
+
+rewrite_history
+
+git checkout from-svn-to-git
+script=$(basename $0)
+cp -a "$self" "$script"
+cp -a "$selflib" "$lib"
+git add "$script" "$lib"
+git commit -m "import from snapshot.debian.org"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/khronos-opencl-headers.git
More information about the Pkg-opencl-commits
mailing list