[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Injecting Jay's perl packages in SVN



Vincent Danjean wrote:
>   I will svn-inject all your perl packages (with a script) this morning so that
> the current version will be in the Debian Perl Group SVN.

All Jay perl packages are injected and tagged with the script in attachment
(I hope there is no error)
Today, I will only work on libxml-rss-perl.

  Best regards,
    Vincent

#!/bin/bash

set -e

import_package() {
    local package="$1"
    local here="$PWD"

    set -x
    mkdir $package
    cd $package
    apt-get source --download-only $package
    svn-inject -l 2 $package*.dsc svn+ssh://vdanjean@svn.debian.org/svn/pkg-perl/
    cd $package
    version="$(parsechangelog | grep Version | cut -d \  -f 2)"
    url=$(svn info | grep '^URL : ' | cut -d \  -f 3)
    tag="$(echo "$url" | sed -e "s,/trunk/,/tags/," -e 's,$,'"/$version,")"
    svn copy -m 'current Debian version of Jay Bonci package' "$url" "$tag"

    cd "$here"
    set +x
}

for p in $(cat list); do
    echo "**************************************"
    echo "* IMPORTING $p "
    echo "**************************************"
    import_package "$p"
done

Reply to: