diff options
-rw-r--r-- | Perl/CPANising-tkzinc.pl | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/Perl/CPANising-tkzinc.pl b/Perl/CPANising-tkzinc.pl index b340b14..f92f926 100644 --- a/Perl/CPANising-tkzinc.pl +++ b/Perl/CPANising-tkzinc.pl @@ -33,13 +33,53 @@ die "version in $0 and Zinc.pm must be identical" unless $ver == $version ; system ('cp -p debian/changelog Changes'); ## the CPANising-tkzinc.pl script is not supposed to be distributed -system ('rm -rf sandbox debian CPANising-tkzinc.pl'); +## neither the sandbox, nor debian or redhat dirs +system ('rm -rf sandbox debian redhat CPANising-tkzinc.pl'); + +## the following tcl-needed (or python-needed) dirs are deleted: +system ('rm -rf demos library tclconfig tests Python'); + # removing the .cvsignore files system ('find . -name .cvsignore | xargs rm -f'); +# renaming README.PERL in README +system ('mv README README.FULL ; mv README.PERL README'); + + +# the following dir and 2 files are dummy configure +# files still needed for building Tk::Zinc for Perl. +# They will soon disapear! +system ('mkdir fake_TCL_libs'); +open (TCL , ">fake_TCL_libs/tclConfig.sh"); +print TCL <<EOF +# tclConfig.sh -- +# This shell script is generated automatically by Tcl's +# configure script. +# It is currently necessary, but not used +# to configure Tk::Zinc for perl. +TCL_SRC_DIR='/fake/directory/not/need/for/ptk/install' +EOF + ; + +close TCL; + +open (TK , ">fake_TCL_libs/tkConfig.sh"); +print TK <<EOF +# tkConfig.sh -- +# This shell script is generated automatically by Tcl's +# configure script. +# It is currently necessary, but not used +# to configure Tk::Zinc for perl. +TK_SRC_DIR='/fake/directory/not/need/for/ptk/install' +EOF + ; + +# end of the hack! + # creating the MANIFEST file use ExtUtils::Manifest qw( mkmanifest ); +$ExtUtils::Manifest::Quiet = 1; &mkmanifest(); # and finally creating the tar file, ready to upload |