summaryrefslogtreecommitdiffstats
path: root/debian/readline-common.postinst
blob: 1a664cf1b713d10d9208b80418a42c1e9656d535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/sh -e

install_from_default() {
  if [ ! -f $2 ]; then
    cp -p $1 $2
  fi
}

if [ "$1" = "configure" ] && [ "$2" = "" ]; then
  install_from_default /usr/share/readline/inputrc /etc/inputrc
fi

#DEBHELPER#