/var/lib/pcp/testsuite/mk.localconfig is in pcp-testsuite 3.8.12ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | #! /bin/sh
#
# re-create localconfig files (platform, versions) if need be
#
# Copyright (c) 1997-2002 Silicon Graphics, Inc. All Rights Reserved.
#
# generic initialization
. ./common.rc
tmp=/var/tmp/$$
trap "rm -f $tmp.*; exit" 0 1 2 3 15
eval `./mk.pcpversion $PCP_VERSION`
if which rpm >/dev/null 2>&1
then
PCP_PRO_VER=0
rpm -q pcp-pro >/dev/null 2>&1
[ $? = 0 ] && {
PCP_PRO_VER=`rpm -q pcp-pro \
| sed -e 's/pcp-pro-//' \
-e 's/\.//g' \
-e 's/-.*//' \
-e 's/^\(..\)\(.\)$/\10\2/'`
}
else
PCP_PRO_VER=$PCP_VER
fi
cat <<End-of-File >$tmp.out
PCP_PLATFORM=$PCP_PLATFORM
PCP_VER=$PCP_VER
PCP_EOE_VER=$PCP_VER
PCP_PRO_VER=$PCP_PRO_VER
End-of-File
write_localconfig()
{
awk -F= '{ print "#define",$1,$2 }' < $tmp.out > src/localconfig.h
mv $tmp.out localconfig
}
if [ ! -f localconfig ]
then
echo "Installing \"localconfig\""
write_localconfig
elif diff $tmp.out localconfig >/dev/null
then
:
else
echo "Updating \"localconfig\""
rm -f localconfig
write_localconfig
fi
|