Robbi Nespu pushed to branch master at Debian Med / python-sinfo
Commits: 0c5f61ad by robbinespu at 2021-02-23T17:07:39+08:00 remove debian/get-orig-source* files since we can fetch the upstream code with 'uscan' command - - - - - 2 changed files: - − debian/get-orig-source - − debian/get-orig-source_Files-Excluded Changes: ===================================== debian/get-orig-source deleted ===================================== @@ -1,55 +0,0 @@ -#!/bin/sh -# if you need to repack for whatever reason you can -# use this script via uscan or directly -# -# FIXME: currently the code is not conform to Debian Policy -# http://www.debian.org/doc/debian-policy/ch-source.html -# "get-orig-source (optional)" -# This target may be invoked in any directory, ... -# --> currently it is assumed the script is called in the -# source directory featuring the debian/ dir - -# Excluding files and repacking archives -# -------------------------------------- -# See also mk-origtargz(1) and the --repack option to uscan(1), which -# honor the Files-Excluded list in debian/copyright. -# That may be all you need, especially since the repack option can be set -# in debian/watch. - -# For an example how to fetch source from sourceforge SVN see -# https://salsa.debian.org/med-team/progressivemauve - -COMPRESS=xz - -set -e -NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'` - -if ! echo $@ | grep -q upstream-version ; then - VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'` - uscan --force-download -else - VERSION=`echo $@ | sed "s?^.*--upstream-version \([0-9.]\+\) .*${NAME}.*?\1?"` - if echo "$VERSION" | grep -q "upstream-version" ; then - echo "Unable to parse version number" - exit - fi -fi - -TARDIR=${NAME}-${VERSION} -mkdir -p ../tarballs -cd ../tarballs -# need to clean up the tarballs dir first because upstream tarball might -# contain a directory with unpredictable name -rm -rf * -tar -xaf ../${TARDIR}.tar.gz - -UPSTREAMTARDIR=`find . -mindepth 1 -maxdepth 1 -type d` -if [ "${UPSTREAMTARDIR}" != "${TARDIR}" ] ; then - mv "${UPSTREAMTARDIR}" "${TARDIR}" -fi - -# Remove useless binaries -# ... do something which needs to be done ... - -GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}" -rm -rf ${TARDIR} ===================================== debian/get-orig-source_Files-Excluded deleted ===================================== @@ -1,32 +0,0 @@ -#!/bin/sh -e - -COMPRESS=xz - -ONAME=#SOFTWARENAME# -GITHUBURL=https://github.com/#GITHUBTEAM#/${ONAME} - -NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'` -MVERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed -e 's/+dfsg//' -e 's/^\([0-9][0-9\.a-z]\+\)[+~][-0-9]\+$/\1/'` - -COPYRIGHT=$(pwd)/debian/copyright - -mkdir -p ../tarballs -cd ../tarballs -# need to clean up the tarballs dir first because upstream tarball might -# contain a directory with unpredictable name -rm -rf * -git clone --quiet $GITHUBURL -cd ${ONAME} -VERSION=${MVERSION}+`date -d @$(git show --format="%at" | head -n1) +%Y%m%d`+dfsg -# for esthetical reasons set file timestamps (if git-restore-mtime is installed) -git restore-mtime || true -cd .. -TARDIR=${NAME}-${VERSION} -mv ${ONAME} ${TARDIR} -rm -rf ${TARDIR}/.git -# Remove according to "Files-Excluded" -# Its a bit tricky since '*' needs to be escaped ... -for excl in $(grep "^Files-Excluded" ${COPYRIGHT} | sed -e 's/^Files-Excluded: */ /' -e 's/ \*/ \\*/g') ; do find . -path "$(echo $excl | sed 's/^\\//')" | xargs rm -rf ; done - -GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}" -rm -rf ${TARDIR} View it on GitLab: https://salsa.debian.org/med-team/python-sinfo/-/commit/0c5f61ad31eec63376e7f6e59b49803a131c0c20 -- View it on GitLab: https://salsa.debian.org/med-team/python-sinfo/-/commit/0c5f61ad31eec63376e7f6e59b49803a131c0c20 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
