summaryrefslogtreecommitdiff
path: root/helpcontent2/helpers/createmakefile.pl
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2005-01-27 13:50:55 +0000
committerRüdiger Timm <rt@openoffice.org>2005-01-27 13:50:55 +0000
commita721fb9b3bde65805d7c4cde8513c8c2323d98d3 (patch)
treedcf4217da5b606b743ae2c912a5dd8056173440f /helpcontent2/helpers/createmakefile.pl
parent06d167792709d187e06fc72c803f4712b8aab5e5 (diff)
INTEGRATION: CWS hc680postbeta (1.5.2); FILE MERGED
2005/01/24 12:11:29 fpe 1.5.2.3: regular update 2005/01/18 16:38:24 fpe 1.5.2.2: RESYNC: (1.5-1.6); FILE MERGED 2005/01/18 15:18:34 fpe 1.5.2.1: regular update
Diffstat (limited to 'helpcontent2/helpers/createmakefile.pl')
-rw-r--r--helpcontent2/helpers/createmakefile.pl37
1 files changed, 35 insertions, 2 deletions
diff --git a/helpcontent2/helpers/createmakefile.pl b/helpcontent2/helpers/createmakefile.pl
index 611913062f..a667f8b5eb 100644
--- a/helpcontent2/helpers/createmakefile.pl
+++ b/helpcontent2/helpers/createmakefile.pl
@@ -17,7 +17,8 @@ use File::Basename;
$makefiletemplate = 'helpers/makefile.template';
$linkmakefiletemplate = 'helpers/linkmakefile.template';
-$helpdirprefix = "helpcontent2/source/";
+$prj = "helpcontent2";
+$helpdirprefix = "$prj/source/";
undef @sbasic;
undef @scalc;
@@ -30,7 +31,9 @@ undef @swriter;
$params = join "|", "",@ARGV,"";
($params =~ /-dir/) ? ($startdir = $params) =~ (s/.*-dir=([^\|]*).*$/$1/gs) : (($startdir = `pwd`) =~ s/\n//gs);
+($startdir = $startdir."/source/text") if ($startdir =~ /$prj$/);
($params =~ /-linkdir/) ? ($linkdir = $params) =~ (s/.*-linkdir=([^\|]*).*$/$1/gs) : (($linkdir = `pwd`) =~ s/\n//gs);
+($linkdir = $linkdir."/util") if ($linkdir =~ /$prj$/);
$recursive = $params =~ /-recursive/ || 0;
$all = $params =~ /-all/ || 0;
@@ -244,6 +247,7 @@ LAD
#-------------------------------------
# shared
+
$module = "shared";
$linkaddedfiles = <<"LAF";
@@ -269,7 +273,7 @@ LAF
LAD
$linklinkfiles = '';
-
+
$auth = "script";
$date = sprintf "%4d/%02d/%02d %02d:%02d:%02d",$year+1900,$mon,$mday,$hour,$min,$sec;
$prj = '..$/..' ;
@@ -361,6 +365,34 @@ LAD
($linkmakefile = $linktmpl) =~ s/%([^%]*)%/$$1/gise;
&writelinkmakefile($module,$linkmakefile);
+#-------------------------------
+# sdatabase
+ $module = "sdatabase";
+
+ $linkaddedfiles = <<"LAF";
+ -add $module.cfg \$(PRJ)\$/source\$/auxiliary\$/LANGUAGE\$/$module.cfg \\
+ -add $module.jar \$(BIN)\$/xhp_${module}_LANGUAGE.zip
+LAF
+
+ $linkaddeddeps = <<"LAD";
+ \$(PRJ)\$/source\$/auxiliary\$/LANGUAGE\$/$module.cfg \\
+ \$(BIN)\$/xhp_${module}_LANGUAGE.zip
+LAD
+
+ $linklinkfiles = '';
+ for (@shared) { $linklinkfiles = $linklinkfiles . " $_ \\\n"; }
+ $auth = "script";
+ $date = sprintf "%4d/%02d/%02d %02d:%02d:%02d",$year+1900,$mon,$mday,$hour,$min,$sec;
+ $prj = '..$/..' ;
+
+ ($linkmakefile = $linktmpl) =~ s/%([^%]*)%/$$1/gise;
+
+ # remove zip1 targets
+ $linkmakefile =~ s,\n(ZIP1LIST=.*)\n,\nZIP1LIST=\$(LANGDIR)\$/text\$/shared\$/explorer\$/database\$/main.xhp,gi;
+ &writelinkmakefile($module,$linkmakefile);
+
+
+
print "sbasic: $#sbasic\n";
print "scalc : $#scalc\n";
print "schart: $#schart\n";
@@ -369,6 +401,7 @@ print "shared: $#shared\n";
print "simpr : $#simpress\n";
print "smath : $#smath\n";
print "swrit : $#swriter\n";
+print "sdbase: $#sdatabase\n";
sub terminate {
$err = shift;