summaryrefslogtreecommitdiff
path: root/dh_installdebfiles
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 04:39:16 +0000
committerjoey <joey>1999-08-17 04:39:16 +0000
commit99b34ff691012e69828ea2167b7a3089ac4953f3 (patch)
treee1dc16371ac4901e1587eddac1c190824e7d0160 /dh_installdebfiles
parentb5b83f0b397cf9403dc5a5fe9a2bfa17ffa006a8 (diff)
downloaddebhelper-99b34ff691012e69828ea2167b7a3089ac4953f3.tar.gz
r37: Initial Import
Diffstat (limited to 'dh_installdebfiles')
-rwxr-xr-xdh_installdebfiles64
1 files changed, 6 insertions, 58 deletions
diff --git a/dh_installdebfiles b/dh_installdebfiles
index 825c9ee5..8b1e0962 100755
--- a/dh_installdebfiles
+++ b/dh_installdebfiles
@@ -1,64 +1,12 @@
#!/bin/sh -e
#
-# Install files from debian/ into the package's DEBIAN directory.
-# Also generates the control file.
+# This program is depricated, but left in the package for backwards
+# compatability. It simply calls the 3 programs that replaced it.
PATH=debian:$PATH:/usr/lib/debhelper
-. dh_lib
-for PACKAGE in $DH_DOPACKAGES; do
- TMP=`tmpdir $PACKAGE`
- EXT=`pkgext $PACKAGE`
+echo "* Note: dh_installdebfiles is depricated." >&2
- if [ ! -d $TMP/DEBIAN ]; then
- doit "install -o root -g root -d $TMP/DEBIAN"
- fi
-
- # Install debian install scripts.
- # If any .debhelper files exist, add them into the scripts.
- for file in postinst preinst prerm postrm; do
- if [ -f debian/$EXT$file ]; then
- # Add this into the script, where it has #DEBHELPER#
- if [ -f debian/$EXT$file.debhelper ]; then
- complex_doit "perl -pe 's~#DEBHELPER#~qx{cat debian/$EXT$file.debhelper}~eg' < debian/$EXT$file > $TMP/DEBIAN/$file"
- doit "chown root.root $TMP/DEBIAN/$file"
- doit "chmod 755 $TMP/DEBIAN/$file"
- else
- doit "install -o root -g root -p debian/$EXT$file $TMP/DEBIAN/$file"
- fi
- else
- # Auto-generate script header and add .debhelper
- # content to it.
- if [ -f debian/$EXT$file.debhelper ]; then
- complex_doit "echo '#!/bin/sh -e' > $TMP/DEBIAN/$file"
- complex_doit "cat debian/$EXT$file.debhelper >> $TMP/DEBIAN/$file"
- doit "chown root.root $TMP/DEBIAN/$file"
- doit "chmod 755 $TMP/DEBIAN/$file"
- fi
- fi
- done
-
- # Install non-executable files
- for file in shlibs conffiles; do
- if [ -f debian/$EXT$file ]; then
- doit "install -o root -g root -m 644 -p debian/$EXT$file $TMP/DEBIAN/$file"
- fi
- done
-
- # Run dpkg-shlibdeps to generate dependancies.
- filelist=""
- for file in `find $TMP -type f \( -perm +111 -or -name "*.so*" \) | tr "\n" " "` ; do
- case "`file $file`" in
- *ELF*)
- filelist="$file $filelist"
- ;;
- esac
- done
- if [ "$filelist" ]; then
- doit "dpkg-shlibdeps -Tdebian/${EXT}substvars $filelist"
- fi
-
- # Generate and install control file.
- doit "dpkg-gencontrol -p$PACKAGE -Tdebian/${EXT}substvars -P$TMP"
- doit "chown root.root $TMP/DEBIAN/control"
-done
+dh_installdeb $*
+dh_shlibdeps $*
+dh_gencontrol $*