Tizen 2.1 base
[platform/upstream/glib2.0.git] / gio / libasyncns / update.sh
1 #!/bin/sh
2
3 if test $# = 1 ; then 
4   ORIGINAL=$1
5 else
6   echo "Usage: update.sh /path/to/libasyncns" 1>&2
7   exit 1
8 fi
9
10 if test -f $ORIGINAL/libasyncns/asyncns.c ; then : ; else
11   echo "Usage: update.sh /path/to/libasyncns" 1>&2
12   exit 1
13 fi
14
15 for i in asyncns.c asyncns.h ; do
16   sed -e 's/\([^a-z]\)asyncns_/\1_g_asyncns_/g' \
17       -e 's/^asyncns_/_g_asyncns_/' \
18       -e 's/<config\.h>/"g-asyncns\.h"/' \
19     $ORIGINAL/libasyncns/$i > $i
20 done