Skip to content

Commit

Permalink
maint/release.pl: create doxygen files
Browse files Browse the repository at this point in the history
  • Loading branch information
shintaro-iwasaki committed Feb 11, 2021
1 parent 257c366 commit ba1e2cf
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions maint/release.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
my $root = cwd();
my $with_autoconf = "";
my $with_automake = "";
my $enable_doxygen = 0;
my $git_repo = "";

my $logfile = "release.log";
Expand All @@ -32,6 +33,7 @@ sub usage
print "\t--append-commit-id append git commit description (optional)\n";
print "\t--with-autoconf autoconf directory (optional)\n";
print "\t--with-automake automake directory (optional)\n";
print "\t--enable-doxygen enable doxygen (optional)\n";

print "\n";

Expand Down Expand Up @@ -120,6 +122,7 @@ sub run_cmd
"append-commit-id!" => \$append_commit_id,
"with-autoconf=s" => \$with_autoconf,
"with-automake=s" => \$with_automake,
"enable-doxygen!" => \$enable_doxygen,
"help" => \&usage
) or die "unable to parse options, stopped";

Expand All @@ -135,6 +138,14 @@ sub run_cmd
check_package("latex");
check_package("autoconf");
check_package("automake");
if ($enable_doxygen) {
check_package("doxygen");
my $official_doxygen_ver = "1.8.17";
my $doxygen_ver = `doxygen --version | head -n 1 | grep "$official_doxygen_ver"`;
if ($doxygen_ver eq "") {
die "ERROR: Doxygen ${official_doxygen_ver} is not installed. Consider setting --enable-doxygen. Stopped";
}
}
print("\n");


Expand Down Expand Up @@ -213,17 +224,19 @@ sub run_cmd
run_cmd("find . -name .tmp | xargs rm -rf");
print("done\n");

# TODO: Get docs
#print("===> Creating secondary codebase for the docs... ");
#run_cmd("mkdir ${expdir}-build");
#chdir("${expdir}-build");
#run_cmd("${expdir}/configure");
#run_cmd("(make doxygen)");
#print("done\n");
#
#print("===> Copying docs over... ");
#run_cmd("cp -a doc/doxygen/html ${expdir}/");
#print("done\n");
if ($enable_doxygen) {
# Create doxygen files
print("===> Creating secondary codebase for the docs... ${expdir}-build ");
run_cmd("mkdir ${expdir}-build");
chdir("${expdir}-build");
run_cmd("${expdir}/configure");
run_cmd("(make doxygen)");
print("done\n");

print("===> Copying docs over... cp -a doc/doxygen/html ${expdir}/ ");
run_cmd("cp -a doc/doxygen ${expdir}/doc");
print("done\n");
};

# Create the main tarball
print("===> Creating the final argobots tarball... ");
Expand Down

0 comments on commit ba1e2cf

Please sign in to comment.