Package list metche / 9e03f8e debian / metche.config
9e03f8e

Tree @9e03f8e (Download .tar.gz)

metche.config @9e03f8eraw · history · blame

#!/bin/sh

CONFIGFILE=/etc/metche.conf
set -e
. /usr/share/debconf/confmodule

if [ -e $CONFIGFILE ]; then
    . $CONFIGFILE || true
    db_set metche/email $EMAIL_ADDRESS
    if [ "$CHANGELOG_FILE" ]; then
	db_set metche/changelog/file $CHANGELOG_FILE
    fi
    if [ "$CHANGELOG_DIR" ]; then
	db_set metche/changelog/directory $CHANGELOG_DIR
    fi
fi

db_input medium metche/email || true
db_input medium metche/changelog/type || true
db_go || true
db_get metche/changelog/type
case "$RET" in
"Single changelog file")
    db_input medium metche/changelog/file || true
    db_go || true
  ;;
"Multiple changelog files")
    db_input medium metche/changelog/directory || true
    db_go || true
  ;;
esac