mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
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
|