blob: f1e4969a277589b6cebf85a147f9dec323ce8505 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/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;
}
if(!-f "configure") {
print "running buildconf\n";
`./buildconf`;
}
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`;
# now make a new configure script with this
print "makes a new configure script\n";
`autoconf configure.ac-rel`;
# now run this new configure to get a fine makefile
print "running configure\n";
`./configure`;
# now make the actual tarball
print "running make dist\n";
`make dist`;
print "removing temporary configure.ac file\n";
`rm configure.ac-rel`;
print "NOTE: now cvs tag this release!\n";
|