Server IP : 104.21.38.3 / Your IP : 172.71.82.68 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/plugin/innodb_memcached/daemon_memcached/devtools/ |
Upload File : |
#!/usr/bin/perl use strict; use FindBin qw($Bin); my %branch = ( '1.2.x' => "http://code.sixapart.com/svn/memcached/trunk/server", '1.1.x' => "http://code.sixapart.com/svn/memcached/branches/memcached-1.1.x", ); foreach my $b (keys %branch) { chdir $Bin or die; my $url = $branch{$b}; my $out = `svn info $b`; unless ($out =~ /^URL: (.+)/m && $1 eq $url) { system("rm -rf $b"); system("svn", "co", $url, $b) and die "Failed to checkout $url\n"; } else { chdir "$Bin/$b" or die; system("svn up") and die "Failed to svn up"; } chdir "$Bin/$b" or die; $out = `svn info .`; my ($maxrev) = $out =~ /^Last Changed Rev: (\d+)/m or die "No max rev?"; print "$b = $maxrev\n"; my $distfile = "memcached-$b-svn$maxrev.tar.gz"; next if -f $distfile && -s _; open(my $fh, "configure.ac") or die "no configure.ac in $b?"; my $ac = do { local $/; <$fh>; }; close($fh); $ac =~ s!AC_INIT\(memcached,.+?\)!AC_INIT(memcached, $b-svn$maxrev, brad\@danga.com)! or die "Failed to replace"; open (my $fh, ">configure.ac") or die "failed to write configure.ac writeable: $!"; print $fh $ac; close ($fh); system("./autogen.sh") and die "Autogen failed. Missing autotools?"; system("./configure") and die "configure failed"; system("make dist") and die "make dist failed"; die "Failed to make dist $distfile." unless -s $distfile; }