Add {GP} to make the script use gsed in macos.

This commit is contained in:
Ismail Sunni 2017-07-27 23:17:33 +07:00 committed by Matthias Kuhn
parent b8616ec513
commit b7a4366c40

View File

@ -31,11 +31,11 @@ modules=(core gui analysis server)
for module in "${modules[@]}"; do
while read -r sipfile; do
echo "$sipfile"
header=$(sed -E 's/(.*)\.sip/src\/\1.h/' <<< $sipfile)
header=$(${GP}sed -E 's/(.*)\.sip/src\/\1.h/' <<< $sipfile)
if [ ! -f $header ]; then
echo "*** Missing header: $header for sipfile $sipfile"
else
path=$(sed -r 's@/[^/]+$@@' <<< $sipfile)
path=$(${GP}sed -r 's@/[^/]+$@@' <<< $sipfile)
mkdir -p python/$path
./scripts/sipify.pl $header > python/$sipfile
fi