mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
Add {GP} to make the script use gsed in macos.
This commit is contained in:
parent
b8616ec513
commit
b7a4366c40
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user