Debian Codegraph @

pkgos_insert_include

raw
1 #!/bin/sh
2
3 set -e
4
5 # Example call: pkgos_insert_include pkgos_func keystone.config
6 INC=/usr/share/openstack-pkg-tools/${1}
7 DST=debian/${2}
8 SRC="debian/${2}.in"
9
10 awk '{if ($1 == "#PKGOS-INCLUDE#") {
11 print "### Start of included " G " library"
12 while ((getline line < F) > 0) print line
13 print "### End of included " G " library"
14 } else print}' F=${INC} G=$(basename $INC) ${SRC} > ${DST}