6 print "Enter version number!\n";
11 print "run this script in the ares source root dir\n";
15 my ($major, $minor, $patch)=split(/\./, $version);
21 open(VER, "<ares_version.h") ||
22 die "can't open ares_version.h";
23 open(NEWV, ">ares_version.h.dist");
25 $_ =~ s/^\#define ARES_VERSION_MAJOR .*/\#define ARES_VERSION_MAJOR $major/;
26 $_ =~ s/^\#define ARES_VERSION_MINOR .*/\#define ARES_VERSION_MINOR $minor/;
27 $_ =~ s/^\#define ARES_VERSION_PATCH .*/\#define ARES_VERSION_PATCH $patch/;
28 $_ =~ s/^\#define ARES_VERSION_STR .*/\#define ARES_VERSION_STR \"$version\"/;
34 print "ares_version.h.dist created\n";
37 print "running buildconf\n";
40 print "adding $version in the configure.ac file\n";
41 `sed -e 's/AC_INIT.*/AC_INIT([c-ares], [$version],/' < configure.ac > configure.ac.dist`;
43 # now make a new configure script with this
44 print "makes a new configure script\n";
45 `autoconf configure.ac.dist >configure`;
47 # now run this new configure to get a fine makefile
48 print "running configure\n";
51 # now make the actual tarball
52 print "running make dist\n";
55 print "removing temporary configure.ac file\n";
56 `rm configure.ac.dist`;
57 print "removing temporary ares_version.h file\n";
58 `rm ares_version.h.dist`;
60 print "NOTE: now cvs tag this release!\n";