Skip to content

Commit

Permalink
Add {GP} to make the script use gsed in macos.
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsunni authored and m-kuhn committed Jul 28, 2017
1 parent b8616ec commit b7a4366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/sipify_all.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ modules=(core gui analysis server)
for module in "${modules[@]}"; do for module in "${modules[@]}"; do
while read -r sipfile; do while read -r sipfile; do
echo "$sipfile" 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 if [ ! -f $header ]; then
echo "*** Missing header: $header for sipfile $sipfile" echo "*** Missing header: $header for sipfile $sipfile"
else else
path=$(sed -r 's@/[^/]+$@@' <<< $sipfile) path=$(${GP}sed -r 's@/[^/]+$@@' <<< $sipfile)
mkdir -p python/$path mkdir -p python/$path
./scripts/sipify.pl $header > python/$sipfile ./scripts/sipify.pl $header > python/$sipfile
fi fi
Expand Down

0 comments on commit b7a4366

Please sign in to comment.