mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
c94d3f9288
GResolver provides asynchronous (and synchronous-but-cancellable) APIs for resolving hostnames, reverse-resolving IP addresses back to hostnames, and resolving SRV records. Part of #548466.
21 lines
442 B
Bash
21 lines
442 B
Bash
#!/bin/sh
|
|
|
|
if test $# = 1 ; then
|
|
ORIGINAL=$1
|
|
else
|
|
echo "Usage: update.sh /path/to/libasyncns" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
if test -f $ORIGINAL/libasyncns/asyncns.c ; then : ; else
|
|
echo "Usage: update.sh /path/to/libasyncns" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
for i in asyncns.c asyncns.h ; do
|
|
sed -e 's/\([^a-z]\)asyncns_/\1_g_asyncns_/g' \
|
|
-e 's/^asyncns_/_g_asyncns_/' \
|
|
-e 's/<config\.h>/"g-asyncns\.h"/' \
|
|
$ORIGINAL/libasyncns/$i > $i
|
|
done
|