1 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2 & eval 'exec perl -S $0 $argv:q'
13 my $perl_path = '/usr/bin/perl';
17 &can_run($perl_path.' -V') ||
18 die "$0: perl path is incorrect, please fix the script\n";
20 my $doxy_path = '/usr/local/bin';
22 $ENV{'PATH'} = $ENV{'PATH'}.':'.$doxy_path;
24 print "Starting doxygen document generation \n";
38 my $md5sum = 'md5sum';
40 my $cksum_ext = 'md5';
42 my $checksum = '$md5sum';
44 $SIG{'HUP'} = $SIG{'INT'} = $SIG{'QUIT'} = $SIG{'TERM'} = 'cleanup';
46 my $release_filter = '\\( -name .svn -o -name build \\) -prune -o ' .
47 '! -name \'.\#*\' ! -name \'\#*\' ! -name \'*~\' ' .
48 '! -name \'*.MAK\' -print';
51 "\"\\.mak|\\.mdp|\\.ide|\\.exe\|\\.ico\|\\.gz\|\\.zip\|" .
52 "\\.gif|\\.vcp|\\.vcproj|\\.vcw|\\.sln\"";
55 ######## Main execution thread.
57 &ex ("bin/generate_doxygen.pl -is_release -perl_path $perl_path")
58 && die "$0: failed to generate ACE man pages\n";
61 "$find ./html $release_filter | $cpio -o -H tar | " .
62 "$gzip -9 > ACE-html.tar.gz && ".
63 "$find ./html $release_filter | $cpio -o -H tar | " .
64 "$bzip -9 > ACE-html.tar.bz2 && ".
65 "$find ./html $release_filter | $egrep -v $bin_files | " .
66 "zip ACE-html.zip -q9@ &&" .
67 "md5sum ACE-html.tar.gz > ACE-html.tar.gz.md5 &&" .
68 "md5sum ACE-html.tar.bz2 > ACE-html.tar.bz2.md5 &&" .
69 "md5sum ACE-html.zip > ACE-html.zip.md5;";
72 && die "$0: failed to package ACE man pages\n";
74 print "Finished doxygen document generation \n";
80 ######## Verify that a command can be executed, return 1 on sucess
85 open (RUN, "$command 2>&1 |")
94 ######## Execute a command, unless -n had been specified. Return value
95 ######## of 0 indicates success.
101 print "Command is $command \n";