# ------------------------------------------------------------------------------ # # Copyright (c) 1999-2000 by Klaus Reger # # You may distribute under the terms of either the GNU General Public # License as specified in the Perl README file. # # THIS IS BETA SOFTWARE! # # THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. # # $Id: Makefile.PL,v 1.7 2003/04/16 11:23:59 k_reger Exp $ # # ------------------------------------------------------------------------------ # Program-Data # ------------------------------------------------------------------------------ # Project : WWWdb # System : Perl # Program : # Module : $RCSfile: Makefile.PL,v $ # Version : $Revision: 1.7 $ # Date : $Date: 2003/04/16 11:23:59 $ # State : $State: Exp $ # # Description: # FIXME: DESCRIPTION # # --- Known Bugs --------------------------------------------------------------- # - Currently none # --- TODO ------------------- # - Make a correct rpm # ------------------------------------------------------------------------------ # Change-log: # # $Log: Makefile.PL,v $ # Revision 1.7 2003/04/16 11:23:59 k_reger # - Bugfixes # # Revision 1.6 2002/04/05 12:33:03 k_reger # - load/unload db # # Revision 1.5 2002/02/28 15:49:37 k_reger # - Install modules in normal way # # Revision 1.4 2000/10/12 14:05:31 k_reger # - snapshot # # ------------------------------------------------------------------------------ use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile ('NAME' => 'WWWdb', 'VERSION_FROM' => 'WWWdb.cgi', # finds $VERSION 'PMLIBDIRS' => ['WWWdb/', 'WWWdb/DbSession/', 'Apache'], # 'PM' => # {'WWWdb_TransUri.pm' => '$(INST_LIBDIR)/Apache/WWWdb_TransUri.pm', # 'WWWdb/Base.pm' => '$(INST_LIBDIR)/WWWdb/Base.pm', # } ); sub MY::postamble { ' translate: po-files trans po-files: for i in `find . \( -name "*.cgi" -o \ -name "*.p[lm]" -o \ -name "*.rc" \) -follow -print | sort`; \ do \ echo "$${i}"; \ perl ./tools/CreatePoFiles.pl -d en "$${i}"; \ perl ./tools/CreatePoFiles.pl -d de "$${i}"; \ done; trans: rm -f ./locale/en; \ for i in `find . \( -name "*_en.po" \) -follow -print | sort`; \ do \ echo "$${i}"; \ perl tools/MsgFormat.pl ./locale en < $${i} >/dev/null; \ done; \ rm -f ./locale/de; \ for i in `find . \( -name "*_de.po" \) -follow -print | sort`; \ do \ echo "$${i}"; \ perl tools/MsgFormat.pl ./locale de < $${i} >/dev/null; \ done; reorg: tools/TestWWWdb.pl -b New "wwwdb_devel/ffffffffffffffff/Default/WWWdb:NavCatReorg" unload-db: cd lib/WWWdb/Db; \ ./CreateNewDb.sh -b Pg -U www-data -e -D wwwdb; \ cd ../../..; load-db: cd lib/WWWdb/Db; \ ./CreateNewDb.sh -b Pg -U www-data -D wwwdb -cif; \ cd ../../..; '; }