Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modulesDirectory=$DERIVED_FILES_DIR/modules
- modulesMap=$modulesDirectory/module.modulemap
- modulesMapTemp=$modulesDirectory/module.modulemap.tmp
- mkdir -p "$modulesDirectory"
- cat > "$modulesMapTemp" << MAP
- module CommonCrypto [system] {
- header "$SDKROOT/usr/include/CommonCrypto/CommonCrypto.h"
- export *
- }
- MAP
- diff "$modulesMapTemp" "$modulesMap" >/dev/null 2>/dev/null
- if [[ $? != 0 ]] ; then
- mv "$modulesMapTemp" "$modulesMap"
- else
- rm "$modulesMapTemp"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement