]> git.donarmstrong.com Git - neurodebian.git/blob - tools/nd_backport
Disable auto-dep until the trailer package is publicly available.
[neurodebian.git] / tools / nd_backport
1 #!/bin/bash
2 #
3 # Simple frontend for backport-dsc to do it the NeuroDebian way
4 #
5
6 set -e
7 set -u
8
9 release=$1
10 dscfile=$2
11
12 if [ -z "$release" ]; then
13   echo "You need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
14   exit 1
15 fi
16
17 if [ -z "$2" ]; then
18 cat << EOT
19 Script to backport a source package to some target release.
20
21 Synopsis
22 --------
23
24   nd_backport <codename> <dsc file>
25
26 EOT
27 exit 1
28 fi
29
30 # assemble an appropriate backport-dsc call
31 backport-dsc \
32         --maint-name "NeuroDebian Maintainers" \
33         --maint-email "team@neuro.debian.net" \
34         --target-distribution "$release" \
35         --version-suffix "$(nd_querycfg "release backport ids" "$release")" \
36         "$dscfile"
37
38 # not adding the auto-dep for now
39 #       --mod-control 's/^Depends:.*$/&, neurodebian-trailer/' \