source: build-files/ports-overlay/editors/openoffice-devel/files/generate.pl @ d9f825f

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2
Last change on this file since d9f825f was d9f825f, checked in by Kris Moore <kris@…>, 10 months ago

Mark openoffice-devel as broken, don't need to keep wasting 4-5 hours
compiling it

  • Property mode set to 100644
File size: 1.7 KB
Line 
1#!/usr/bin/perl
2# generate full build shell script for Apache OpenOffice
3# Whom:         Maho Nakata <maho@FreeBSD.org>
4# $FreeBSD: editors/openoffice-devel/files/generate.pl 300896 2012-07-14 13:54:48Z beat $
5
6print "#!/bin/csh\n";
7print "make deinstall clean\n";
8print "/usr/bin/time -h make WITH_CCACHE=yes install package package-rename solver sdk ure languagepack deinstall >& log.en\n";
9print "bzip2 log.en\n";
10#print "rm work/.configure* work/.build* \n";
11#workaround for breakage at odk sdk_oo
12print "make deinstall clean\n";
13
14print "/usr/bin/time -h make ALL_LOCALIZED_LANGS=yes >& log.all\n";
15print "bzip2 log.all\n";
16
17open ( FILE,  "< Makefile.localized") ;
18while(<FILE>){
19@tmp=split (' ',$_);
20@tmp2=split ('"',$tmp[3]);
21if ( $tmp[0] eq ".if" && $tmp[1] eq "\${LOCALIZED_LANG}" ) { $LANG=$tmp2[1]; 
22        print "make TWEAK_L10N=yes LOCALIZED_LANG=$LANG pre-everything\n";
23        print "/usr/bin/time -h make LOCALIZED_LANG=$LANG WITH_CCACHE=yes languagepack package package-rename deinstall >& log.$LANG\n";
24        print "bzip2 log.$LANG\n";
25        }
26}
27close FILE;
28$oootag= `cd ..; make -V OOOTAG2`;
29chomp($oootag);
30$md5sumname = "$oootag" . "_md5sums.txt";
31print "md5 OOo* > $md5sumname\n";
32
33$arc= `uname -m`;
34if ($arc == "amd64" ) {
35print "sudo -u `who am i | awk '{print \$1}'` ssh build.good-day.net mkdir -p /home/ftp/pub/OpenOffice.org/contrib/freebsdx86-64/\n";
36print "sudo -u `who am i | awk '{print \$1}'` scp OOo* $md5sumname build.good-day.net:/home/ftp/pub/OpenOffice.org/contrib/freebsdx86-64/\n";
37} else { 
38print "sudo -u `who am i | awk '{print \$1}'` ssh build.good-day.net mkdir -p /home/ftp/pub/OpenOffice.org/contrib/freebsdx86/\n";
39print "sudo -u `who am i | awk '{print \$1}'` scp OOo* $md5sumname build.good-day.net:/home/ftp/pub/OpenOffice.org/contrib/freebsdx86/\n";
40}
Note: See TracBrowser for help on using the repository browser.