2003-10-09 04:18:15 +08:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
$version = $ARGV[0];
|
|
|
|
|
|
|
|
if($version eq "") {
|
|
|
|
print "Enter version number!\n";
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(!-f "ares.h") {
|
|
|
|
print "run this script in the ares source root dir\n";
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
2003-10-09 04:25:37 +08:00
|
|
|
if(!-f "configure") {
|
2004-07-23 06:18:45 +08:00
|
|
|
print "running buildconf\n";
|
|
|
|
`./buildconf`;
|
2003-10-09 04:18:15 +08:00
|
|
|
}
|
2004-07-23 06:18:45 +08:00
|
|
|
print "adding $version in the configure.ac file\n";
|
|
|
|
`sed -e 's/AM_INIT_AUTOMAKE(c-ares, CVS)/AM_INIT_AUTOMAKE(c-ares, $version)/' < configure.ac > configure.ac-rel`;
|
2003-10-09 04:18:15 +08:00
|
|
|
|
2004-07-23 06:18:45 +08:00
|
|
|
# now make a new configure script with this
|
|
|
|
print "makes a new configure script\n";
|
2004-07-24 14:29:38 +08:00
|
|
|
`autoconf configure.ac-rel >configure`;
|
2003-10-09 04:18:15 +08:00
|
|
|
|
2004-07-23 06:18:45 +08:00
|
|
|
# now run this new configure to get a fine makefile
|
|
|
|
print "running configure\n";
|
|
|
|
`./configure`;
|
2003-10-09 04:18:15 +08:00
|
|
|
|
2004-07-23 06:18:45 +08:00
|
|
|
# now make the actual tarball
|
|
|
|
print "running make dist\n";
|
|
|
|
`make dist`;
|
2003-10-09 04:18:15 +08:00
|
|
|
|
2004-07-23 06:18:45 +08:00
|
|
|
print "removing temporary configure.ac file\n";
|
|
|
|
`rm configure.ac-rel`;
|
2004-04-01 16:23:26 +08:00
|
|
|
|
|
|
|
print "NOTE: now cvs tag this release!\n";
|