3 # generate control preamble from control.master
6 trap "rm -f $tmp.*; exit 0" 0 1 2 3 15
9 # dh-python not always available ... this is not checked for in configure
10 # so have to base it on the platform type and version
14 if [ -f /etc
/os-release
]
16 NAME
=`sed -n -e 's/"//'g -e '/^NAME=/s/NAME=//p' </etc/os-release`
17 if [ "$NAME" = "Debian GNU/Linux" ]
19 VERSION_ID
=`sed -n -e 's/"//'g -e '/^VERSION_ID=/s/VERSION_ID=//p' </etc/os-release`
26 elif [ "$NAME" = "Ubuntu" ]
28 VERSION_ID
=`sed -n -e 's/"//'g -e '/^VERSION_ID=/s/VERSION_ID=//p' </etc/os-release`
36 elif [ -f /etc
/debian_version
]
38 VERSION_ID
=`cat /etc/debian_version`
49 echo "s/?{dh-python}//" >>$tmp.
sed
51 echo "s/?{dh-python}/dh-python,/" >>$tmp.
sed
54 # for some others we rely on what configure has discovered
56 if [ ! -f ..
/src
/include
/builddefs
]
58 echo "fixcontrol.master: Botch: ../src/include/builddefs does not exist"
62 eval `egrep '^(PMDA_|HAVE_)' ../src/include/builddefs | sed -e 's/ //g'`
66 echo "s/?{libpapi-dev}/libpapi-dev [!s390x],/" >>$tmp.
sed
68 echo "s/?{libpapi-dev}//" >>$tmp.
sed
73 echo "s/?{libpfm4-dev}/libpfm4-dev,/" >>$tmp.
sed
75 echo "s/?{libpfm4-dev}//" >>$tmp.
sed
78 if $HAVE_PYTHON_JSONPOINTER
80 echo "s/?{python-json-pointer}/python-json-pointer,/" >>$tmp.
sed
82 echo "s/?{python-json-pointer}//" >>$tmp.
sed
85 if $HAVE_PYTHON_REQUESTS
87 echo "s/?{python-requests}/python-requests,/" >>$tmp.
sed
89 echo "s/?{python-requests}//" >>$tmp.
sed
92 sed -f $tmp.
sed <control.master