File: postinst

package info (click to toggle)
pcd2html 0.5.1-3.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 368 kB
  • ctags: 56
  • sloc: perl: 1,405; makefile: 120; sh: 69
file content (21 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e

PKG=`basename $0 | sed -e 's/\.[^.]*$//'`
CFG=/etc/${PKG}.conf

. /usr/share/debconf/confmodule

# mount point for cdrom
db_get ${PKG}/cdmount

if [ -e ${CFG} ] ; then
    mv $CFG ${CFG}~
    sed "s?^\([^#^ ][^#^ ]*\)?$RET?" ${CFG}~ > ${CFG}
    rm  ${CFG}~
else
    echo "# Configuration for ${PKG}" > ${CFG}
    echo "# Set the mount point for the photo CD here in a single line." >> ${CFG}
    echo "$RET" >> ${CFG}
fi

#DEBHELPER#