From cd59bb2ad2f4cde4c84bd422d552bff0441b0e23 Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Tue, 2 May 2006 07:51:10 +0000 Subject: [PATCH] This script is unused now. --- .../public_release/make_public_release | 67 ------------------- 1 file changed, 67 deletions(-) delete mode 100755 Maintenance/public_release/make_public_release diff --git a/Maintenance/public_release/make_public_release b/Maintenance/public_release/make_public_release deleted file mode 100755 index a161b9f6d41..00000000000 --- a/Maintenance/public_release/make_public_release +++ /dev/null @@ -1,67 +0,0 @@ -#!/usr/bin/perl -w -my ($major,$minor) = (3,1); -#my $release_date_option = "-d '2000, January 11'"; -my $release_date_option = ""; - -my $explanation=<<'EOF'; -What to do to make a public release - -Take the latest internal release. Unpack it and go to its main directory. -Alter the second line above, such that the major and minor release -number are ok. -Run this script. This does the following: - Remove directories : test, Packages, developer_scripts, doc_tex, winutils. - Remove examples/*/cgal_test, demo/*/cgal_test. - Find all .C and .h files and collect them in a file - Edit include/CGAL/version.h - #define CGAL_VERSION ... - #define CGAL_VERSION_NR ... - -The rest is done manually still. -Rename the current directory to CGAL-x.y. -Do - find CGAL-x.y -exec touch 01221530 {} \; -in order to touch all files (Here the date/time Jan 22, 15:30 was used -as an example) -Make CGAL-x.y.tar.gz with tar and gzip and CGAL-x.y.zip with zip. - -The documentation goes separately from the rest, except for the installation -manual. - -EOF - - -die if $major >= 1000; -die if $major < 1; -die if $minor >= 1000; -die if $minor < 0; -die "Quitting: No include/CGAL directory under current directory\n" -if (! -d 'include/CGAL' ); -system ("rm -rf test"); -system ("rm -rf Packages"); -system ("rm -rf developer_scripts"); -system ("rm -rf doc_tex"); -system ("rm -rf winutils"); -system ("rm -f examples/*/cgal_test"); -system ("rm -f demo/*/cgal_test"); -system("find . -name '*.[hC]' -print > filenames"); -unlink 'filenames'; -my $version_nr = sprintf "1%03d%03d100",$major,$minor; -my $config_file = 'include/CGAL/version.h'; -die if ! -r $config_file; -open TMPFILE, ">tmp_config$$"; -open CONFIGFILE, "$config_file"; -while () { - if (/\s*#define\s+CGAL_VERSION\s/) { - print TMPFILE "#define CGAL_VERSION ${major}.${minor}\n"; - } elsif (/\s*#define\s+CGAL_VERSION_NR\s/) { - print TMPFILE "#define CGAL_VERSION_NR $version_nr\n"; - } else { - print TMPFILE $_; - } -} -close CONFIGFILE; -close TMPFILE; -rename "tmp_config$$", "$config_file"; - -#print $explanation;