restore-temporary-headers [plain text]
#!/bin/sh
if [ $ echo "Cannot update headers, private header directory not specified"
exit 1
fi
SPI_BASE="${1}"
for H in \
DHCPClientPreferences.h \
SCDynamicStore.h \
SCDynamicStoreCopyDHCPInfo.h \
SCDynamicStoreCopySpecific.h \
SCDynamicStoreKey.h \
SCNetworkConfiguration.h \
SCNetworkConnection.h \
SCPreferences.h \
SCPreferencesPath.h \
SCPreferencesSetSpecific.h \
SCSchemaDefinitions.h \
SystemConfiguration.h \
do
HACK=$(echo "_DO_NOT_INCLUDE_${H}" | tr '[:lower:]' '[:upper:]' | sed -e 's/\./_/')
cat <<_END_OF_INPUT > "${SPI_BASE}/_${H}"
/*
* WARNING WARNING WARNING WARNING WARNING
*
* This is a PRIVATE/INTERNAL header file that is on the to-be-removed soon
* list. Please update your project to use :
* * or :
* *
* WARNING WARNING WARNING WARNING WARNING
*/
_END_OF_INPUT
done
exit