source: ubiquity/trunk/fuentes/d-i/update-changelog

Last change on this file was 1053, checked in by kbut, 4 years ago

add ubiquity

  • Property svn:executable set to *
File size: 611 bytes
Line 
1#! /bin/sh
2set -e
3
4MESSAGE='Automatic update of included source packages'
5
6./build-manifest > manifest
7
8# Has anything changed?
9cmp -s manifest.old manifest && exit 0
10
11TOPDIR=.
12if [ ! -e debian/changelog ]; then
13        TOPDIR=..
14        if [ ! -e ../debian/changelog ]; then
15                echo "cannot find debian/changelog" >&2
16                exit 1
17        fi
18fi
19
20sep=:
21for changed in $(sort -u manifest.old manifest | cut -d' ' -f1 | uniq -d); do
22        new="$(echo "$changed" | join -o 2.2 - manifest)"
23        MESSAGE="$MESSAGE$sep $changed $new"
24        sep=,
25done
26MESSAGE="$MESSAGE."
27
28echo "$MESSAGE"
29(cd $TOPDIR && dch -t -D UNRELEASED "$MESSAGE")
30
31rm -f manifest.old
Note: See TracBrowser for help on using the repository browser.