#!/bin/bash rm -f footprint.in mv .footprint footprint.in # These files are built when pcsclite is not installed while compiling. If # it is, there will be other files in the footprint hash_patterns="neard_dbus_types_p.h neard_helper_p.h qnearfieldmanager_neard_p.h qnearfieldtarget_neard_p.h adapter_interface.h objectmanager_interface.h properties_interface.h tag_interface.h" for hash_pattern in ${hash_patterns[@]}; do sed -i "/$hash_pattern/d" footprint.in done cp footprint.in .footprint rm -f footprint.in