mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
c85bf83e88
check for ssize_t to make it possible to use that when receiving the send() error code. This is necessary to prevent compiler warnings on some systems. - Made configure create config.h, and all source files now include setup.h that might include the proper config.h (or a handicrafted alternative). - Switched to 'ares_socket_t' type for sockets in ares, since Windows don't use 'int' for that. - automake-ified and libool-ified c-ares. Now it builds libcares as a shared lib on most platforms if wanted. (This bloated the size of the release archive with another 200K!) - Makefile.am now uses Makefile.inc for the c sources, h headers and man pages, to make it easier for other makefiles to use the exact same set of files. - Adjusted 'maketgz' to use the new automake magic when building distribution archives.
38 lines
847 B
Perl
Executable File
38 lines
847 B
Perl
Executable File
#!/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";
|