File: readline-common.postinst

package info (click to toggle)
readline 7.0-3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 8,500 kB
  • ctags: 4,100
  • sloc: ansic: 26,619; sh: 5,445; perl: 4,105; makefile: 1,690
file content (13 lines) | stat: -rw-r--r-- 216 bytes parent folder | download | duplicates (10)
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#