aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk')
-rw-r--r--meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk30
1 files changed, 0 insertions, 30 deletions
diff --git a/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk b/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk
deleted file mode 100644
index cbc8d1a109..0000000000
--- a/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk
+++ /dev/null
@@ -1,30 +0,0 @@
-#
-# Copyright 2007 Openedhand Ltd.
-#
-# Author: Richard Purdie <rpurdie@openedhand.com>
-#
-# Rather hacky proof of concept
-#
-
-BEGIN {
- rc=system("test -d /var/lib/dpkg/info/")
- if (rc==0)
- pkgdir="/var/lib/dpkg/info"
- else
- pkgdir="/var/lib/opkg/info"
- package=""
-}
-/Package:.*/ {
- package = substr($0, 10)
-}
-/Status:.*unpacked.*/ {
- print "Configuring: " package > "/dev/stderr"
- ret = system(pkgdir "/" package ".postinst 1>&2")
- if (ret == 0)
- $0 = gensub("unpacked", "installed", 1)
- else
- print "Postinstall failed for " package > "/dev/stderr"
-}
-{
- print $0
-}