[Libreoffice-commits] core.git: solenv/bin

Jan Holesovsky kendy at suse.cz
Mon Feb 25 04:38:13 PST 2013


 solenv/bin/gen_update_info.pl |  167 ------------------------------------------
 1 file changed, 167 deletions(-)

New commits:
commit ff4ed8422874e1624840366b14496885c49a9dbb
Author: Jan Holesovsky <kendy at suse.cz>
Date:   Mon Feb 25 13:36:56 2013 +0100

    gen_update_info.pl not needed, we generate the update info on the server.
    
    Change-Id: Ib841747b10a1d0cda54b2b05a813760d1a50a3fa

diff --git a/solenv/bin/gen_update_info.pl b/solenv/bin/gen_update_info.pl
deleted file mode 100644
index fe033c6..0000000
--- a/solenv/bin/gen_update_info.pl
+++ /dev/null
@@ -1,167 +0,0 @@
-:
-eval 'exec perl -wS $0 ${1+"$@"}'
-        if 0;
-
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-#   Licensed to the Apache Software Foundation (ASF) under one or more
-#   contributor license agreements. See the NOTICE file distributed
-#   with this work for additional information regarding copyright
-#   ownership. The ASF licenses this file to you under the Apache
-#   License, Version 2.0 (the "License"); you may not use this file
-#   except in compliance with the License. You may obtain a copy of
-#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-
-#*********************************************************************
-#
-# main
-#
-
-my($product, $buildid, $id, $os, $arch, $lstfile, $languages, $productname, $productversion, $productedition);
-
-while ($_ = $ARGV[0], /^-/) {
-    shift;
-    last if /^--$/;
-    if (/^--product/) {
-        $product= $ARGV[0];
-        shift;
-    }
-    if (/^--buildid/) {
-        $buildid = $ARGV[0];
-        shift;
-    }
-    if (/^--os/) {
-        $os = $ARGV[0];
-        shift;
-    }
-    if (/^--arch/) {
-        $arch = $ARGV[0];
-        shift;
-    }
-    if (/^--lstfile/) {
-        $lstfile = $ARGV[0];
-        shift;
-    }
-    if (/^--languages/) {
-        $languages = $ARGV[0];
-        shift;
-    }
-}
-
-$sourcefile = $ARGV[0];
-
-if( $^O =~ /cygwin/i ) {
-    # We might get paths with backslashes, fix that.
-    $lstfile =~ s/\\/\//g;
-    $sourcefile =~ s/\\/\//g;
-}
-
-# read openoffice.lst
-# reading Globals section
-unless(open(LSTFILE, "sed -n \"/^Globals\$/,/^}\$/ p\" $lstfile |")) {
-    print STDERR "Can't open $lstfile file: $!\n";
-    return;
-}
-
-while (<LSTFILE>) {
-    if( /\bPRODUCTNAME / ) {
-        chomp;
-        s/.*PRODUCTNAME //;
-        $productname = $_;
-    }
-    if( /\bPACKAGEVERSION / ) {
-        chomp;
-        s/.*PACKAGEVERSION //;
-        $productversion = $_;
-    }
-    if( /\bPRODUCTEDITION / ) {
-        chomp;
-        s/.*PRODUCTEDITION //;
-        $productedition = $_;
-    }
-}
-
-close(LSTFILE);
-
-### may be hierarchical ...
-if(open(LSTFILE, "sed -n \"/^$product:/,/^}\$/ p\" $lstfile |")) {
-    while (<LSTFILE>) {
-        if ( /^$product\s?:\s?(\w+)$/ ) {
-            $product = $1;
-        }
-        if( /\bPRODUCTEDITION / ) {
-            chomp;
-            s/.*PRODUCTEDITION //;
-            $productedition = $_;
-        }
-    }
-}
-close(LSTFILE);
-
-# Reading product specific settings
-
-unless(open(LSTFILE, "sed -n \"/^$product\$/,/^}\$/ p\" $lstfile |")) {
-    print STDERR "Can't open $lstfile file: $!\n";
-    return;
-}
-
-while (<LSTFILE>) {
-    if( /\bPRODUCTNAME / ) {
-        chomp;
-        s/.*PRODUCTNAME //;
-        $productname = $_;
-    }
-    if( /\bPACKAGEVERSION / ) {
-        chomp;
-        s/.*PACKAGEVERSION //;
-        $productversion = $_;
-    }
-    if( /\bPRODUCTEDITION / ) {
-        chomp;
-        s/.*PRODUCTEDITION //;
-        $productedition = $_;
-    }
-}
-
-close(LSTFILE);
-
-# simulate the behavior of make_installer.pl when writing versionrc
-unless( "$os" eq "Windows" ) {
-  $languages =~ s/_.*//;
-}
-
-$id = $productversion;
-$id =~ s/\..*//;
-$id = $productname . "_" . $id . "_" . $languages;
-
-# open input file
-unless (open(SOURCE, $sourcefile)) {
-    print STDERR "Can't open $sourcefile file: $!\n";
-    return;
-}
-
-while (<SOURCE>) {
-   s/:id></:id>$id</;
-   s/buildid></buildid>$buildid</;
-   s/os></os>$os</;
-   s/arch></arch>$arch</;
-   if ( $productedition ) {
-       s/edition></edition>$productedition</;
-   } else {
-       next if ( /edition></ );
-   }
-   s/version></version>$productversion</;
-   s/name></name>$productname</;
-   print;
-}
-
-close(SOURCE);


More information about the Libreoffice-commits mailing list