[eclipse-ptp] 01/05: Use uscan to download upstream tarball

Jakub Adam xhaakon-guest at moszumanska.debian.org
Sat Jun 27 14:49:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

xhaakon-guest pushed a commit to branch master
in repository eclipse-ptp.

commit 182c571ab50bba4eda72d5375fb7a6a828b5929f
Author: Jakub Adam <jakub.adam at ktknet.cz>
Date:   Sat Jun 27 14:19:46 2015 +0200

    Use uscan to download upstream tarball
---
 debian/copyright       | 68 +++++++++++++++++++++++++++++++++++++++++++++
 debian/get-orig-source | 75 --------------------------------------------------
 debian/rules           |  7 +++++
 3 files changed, 75 insertions(+), 75 deletions(-)

diff --git a/debian/copyright b/debian/copyright
index 0bc8f30..6e63b70 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,5 +1,73 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0
 Upstream-Name: Eclipse Parallel Tools Platform
+Files-Excluded: core/org.eclipse.ptp.utils/*
+ core/org.eclipse.ptp.remote.terminal/*
+ core/org.eclipse.ptp.proxy/*
+ core/org.eclipse.ptp.proxy.protocol/*
+ core/org.eclipse.ptp.launch/*
+ core/org.eclipse.ptp.ems.ui/*
+ core/org.eclipse.ptp.ems.core/*
+ core/org.eclipse.ptp.doc.user/*
+ core/org.eclipse.ptp.doc.isv/*
+ core/org.eclipse.ptp.core.tests/*
+ core/org.eclipse.ptp.services.test/*
+ debug/*
+ rdt/org.eclipse.ptp.rdt.core.remotejars/*
+ rdt/org.eclipse.ptp.rdt.core.stubs/*
+ rdt/org.eclipse.ptp.rdt.core.tests/*
+ rdt/org.eclipse.ptp.rdt.managedbuilder.xlc.ui/*
+ rdt/org.eclipse.ptp.rdt.managedbuilder.xlupc.ui/*
+ rdt/org.eclipse.ptp.rdt.server.dstore/*
+ rdt/org.eclipse.ptp.rdt.sync.*
+ rdt/org.eclipse.ptp.rdt.ui.tests/*
+ rdt/org.eclipse.ptp.rdt.xlc/*
+ releng/org.eclipse.ptp/*
+ releng/org.eclipse.ptp.sdm-feature/*
+ releng/org.eclipse.ptp.sdk-feature/*
+ releng/org.eclipse.ptp.sci-feature/*
+ releng/org.eclipse.ptp.rm.slurm-feature/*
+ releng/org.eclipse.ptp.rm.jaxb.contrib-feature/*
+ releng/org.eclipse.ptp.rm.ibm.platform.lsf-feature/*
+ releng/org.eclipse.ptp.rm.ibm.pe-feature/*
+ releng/org.eclipse.ptp.rm.ibm.ll-feature/*
+ releng/org.eclipse.ptp.repo/*
+ releng/org.eclipse.ptp.remote.terminal-feature/*
+ releng/org.eclipse.ptp.rdt.xlc.sdk-feature/*
+ releng/org.eclipse.ptp.rdt.xlc-feature/*
+ releng/org.eclipse.ptp.rdt.sync.fortran-feature/*
+ releng/org.eclipse.ptp.rdt.sync.cdt-feature/*
+ releng/org.eclipse.ptp.rdt.sync-feature/*
+ releng/org.eclipse.ptp.rdt.sdk-feature/*
+ releng/org.eclipse.ptp.rdt.remotetools-feature/*
+ releng/org.eclipse.ptp.rdt.remotejars-feature/*
+ releng/org.eclipse.ptp.pldt.upc-feature/*
+ releng/org.eclipse.ptp.pldt.fortran-feature/*
+ releng/org.eclipse.ptp.pldt-feature/*
+ releng/org.eclipse.ptp.macosx/*
+ releng/org.eclipse.ptp.linux/*
+ releng/org.eclipse.ptp.gem-feature/*
+ releng/org.eclipse.ptp.fortran-feature/*
+ releng/org.eclipse.ptp.etfw.tau.fortran-feature/*
+ releng/org.eclipse.ptp.etfw.tau-feature/*
+ releng/org.eclipse.ptp.etfw.feedback.perfsuite-feature/*
+ releng/org.eclipse.ptp.etfw-feature/*
+ releng/org.eclipse.ptp.core.source-feature/*
+ releng/org.eclipse.ptp.cdt.compilers-feature/*
+ releng/org.eclipse.ptp.aix/*
+ releng/org.eclipse.ptp.gig-feature/*
+ releng/org.eclipse.ptp-product/*
+ releng/org.eclipse.ptp-feature/*
+ releng/.cvsignore
+ rms/*
+ tools/cdt/*
+ tools/etfw/*
+ tools/gem/*
+ tools/gig/*
+ tools/pldt/*
+ tools/samples/*
+ tools/sci/*
+ *.cvsignore
+ *.gitignore
 
 Files: *
 Copyright: 2010, 2013, Andrew Gvozdev and others
diff --git a/debian/get-orig-source b/debian/get-orig-source
deleted file mode 100755
index 807b995..0000000
--- a/debian/get-orig-source
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/bin/bash
-set -e
-
-NAME=eclipse-ptp
-VERSION=8.0.0
-DEB_VERSION=${VERSION}
-
-ECLIPSE_GIT_WEB=http://git.eclipse.org/c
-
-rm -rf ${NAME}-${DEB_VERSION}
-
-VERSION_UNDERSCORE=$(echo $VERSION | sed "s/\./_/g")
-REPO_NAME=org.eclipse.ptp
-
-TARBALL=${REPO_NAME}-PTP_${VERSION_UNDERSCORE}.tar.bz2
-
-wget "$ECLIPSE_GIT_WEB/ptp/$REPO_NAME.git/snapshot/$TARBALL"
-tar xf $TARBALL
-rm -f $TARBALL
-
-mv ${REPO_NAME}-PTP_${VERSION_UNDERSCORE} ${NAME}-${DEB_VERSION}
-cd ${NAME}-${DEB_VERSION}
-
-find -type f -name .gitignore -delete
-find -type f -name .cvsignore -delete
-
-rm -rf pom.xml debug rms workspace
-
-find releng -mindepth 1 -maxdepth 1 | \
-	grep -v -e org.eclipse.ptp.core-feature \
-		-e org.eclipse.ptp.services-feature \
-		-e org.eclipse.ptp.remote-feature \
-		-e org.eclipse.ptp.remote.remotetools-feature \
-		-e org.eclipse.ptp.remote.rse-feature \
-		-e org.eclipse.ptp.remotetools-feature \
-		-e org.eclipse.ptp.rdt-feature \
-		-e org.eclipse.ptp.rdt.editor-feature | xargs rm -rf
-
-find core -mindepth 1 -maxdepth 1 | \
-	grep -v -e org.eclipse.ptp.core$ \
-		-e org.eclipse.ptp.remote.core \
-		-e org.eclipse.ptp.remote.rse.core \
-		-e org.eclipse.ptp.remote.rse.ui \
-		-e org.eclipse.ptp.remote.remotetools.core \
-		-e org.eclipse.ptp.remote.remotetools.ui \
-		-e org.eclipse.ptp.remote.server.core \
-		-e org.eclipse.ptp.remote.ui \
-		-e org.eclipse.ptp.services.core \
-		-e org.eclipse.ptp.services.ui \
-		-e org.eclipse.ptp.ui | xargs rm -rf
-
-find tools -mindepth 1 -maxdepth 1 |
-	grep -v -e remotetools | xargs rm -rf
-
-cd rdt
-rm -rf org.eclipse.ptp.rdt.core.remotejars \
-	org.eclipse.ptp.rdt.core.stubs \
-	org.eclipse.ptp.rdt.core.tests \
-	org.eclipse.ptp.rdt.managedbuilder.xlc.ui \
-	org.eclipse.ptp.rdt.managedbuilder.xlupc.ui \
-	org.eclipse.ptp.rdt.server.dstore \
-	org.eclipse.ptp.rdt.sync.* \
-	org.eclipse.ptp.rdt.ui.tests \
-	org.eclipse.ptp.rdt.xlc
-cd ..
-
-# remove empty directories
-find . -depth -type d -empty -delete
-
-cd ..
-
-echo "Creating tarball '${NAME}_${DEB_VERSION}.orig.tar.xz'..."
-tar -cJf ../${NAME}_${DEB_VERSION}.orig.tar.xz $NAME-$DEB_VERSION
-
-rm -rf ${NAME}-${DEB_VERSION}
diff --git a/debian/rules b/debian/rules
index fd22250..548722d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,3 +10,10 @@ BUILD_ID:=dist
 
 override_jh_compilefeatures:
 	jh_compilefeatures --build-opts="-DjavacTarget=1.6 -DjavacSource=1.6 -DbuildId=$(BUILD_ID) -DforceContextQualifier=$(BUILD_ID)"
+
+VERSION=$(shell dpkg-parsechangelog -S Version | cut -d- -f1)
+get-orig-source:
+	uscan --force-download --download-version $(VERSION) \
+		--rename --destdir=$(CURDIR) \
+		--repack --compression xz \
+		--verbose

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/eclipse-ptp.git



More information about the pkg-java-commits mailing list