5 echo usage
: $0 dotted_version
date libgeda_sharedlib_version
7 echo " $0 1.0.1 20070626 29:1:0"
12 new_sharedlibversion
=$3
13 if [ "$new_dottedversion" = "" ]
15 echo Missing dotted version
21 if [ "$new_date" = "" ]
29 if [ "$new_sharedlibversion" = "" ]
31 echo Missing libgeda shared library version
38 old_dottedversion
=`grep ^DOTTED_VERSION= Makefile | \
41 old_date
=`grep ^DATE_VERSION= Makefile | \
44 old_sharedlibversion
=`grep ^SHARED_LIBRARY_VERSION libgeda/configure.ac | \
47 echo Existing version info
: $old_dottedversion $old_date $old_sharedlibversion
50 # Update dates and dotted version in the configure scripts
51 tbd_files
="docs/configure.ac examples/configure.ac gattrib/configure.ac gnetlist/configure.ac gsymcheck/configure.ac libgeda/configure.ac symbols/configure.ac utils/configure.ac gschem/configure.ac.in Makefile"
55 echo Updating
$old_date / $old_dottedversion to
$new_date / $new_dottedversion in $i
58 sed "s/^DATE_VERSION=$old_date/DATE_VERSION=$new_date/" | \
59 sed "s/^DOTTED_VERSION=$old_dottedversion/DOTTED_VERSION=$new_dottedversion/" > $i
63 # Update shared library version
64 libgeda_conf
=libgeda
/configure.ac
65 echo Updating
$old_sharedlibversion to
$new_sharedlibversion in $libgeda_conf
66 mv -f $libgeda_conf $libgeda_conf.orig2
67 cat $libgeda_conf.orig2 | \
68 sed "s/^SHARED_LIBRARY_VERSION=$old_sharedlibversion/SHARED_LIBRARY_VERSION=$new_sharedlibversion/" > $libgeda_conf
69 rm -f $libgeda_conf.orig2
73 # Verification step needed here.
77 grep ^DOTTED_VERSION
= $i
78 grep ^DATE_VERSION
= $i