[Libreoffice-commits] core.git: officecfg/util
Stephan Bergmann
sbergman at redhat.com
Mon Feb 5 21:38:22 UTC 2018
officecfg/util/template.gen | 51 --------------------------------------------
1 file changed, 51 deletions(-)
New commits:
commit 578fa77e8922ee9bf97e8b17ba4fb2b9bfae6e61
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Feb 5 16:37:42 2018 +0100
Remove unused officecfg/util/template.gen
...that appears to be unused (and effectively unchanged) at least ever since
ee27dd72550ce8815e06e337d3682d5b8d9d7b11 "initial import"
Change-Id: Ie10fa6c28c375cc467aad104cbc224aef91b0d31
Reviewed-on: https://gerrit.libreoffice.org/49249
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/officecfg/util/template.gen b/officecfg/util/template.gen
deleted file mode 100755
index a19395767118..000000000000
--- a/officecfg/util/template.gen
+++ /dev/null
@@ -1,51 +0,0 @@
-: # -*- perl -*-
-#
-# 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 .
-#
-eval 'exec perl -wS $0 ${1+"$@"}'
- if 0;
-
-open(OUTFILE, ">$ARGV[1]");
-
-print OUTFILE "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
-print OUTFILE "<org.openoffice.Templates>\n";
-
-
-chdir($ARGV[0]) or die "can't chdir() to $ARGV[0]";
-
-opendir(DIR, ".");
-
- at files=readdir(DIR);
-
-foreach $file (@files) {
- if ( $file =~ /\w*\.tpl/ ) {
- open(INFILE, "<$file") or die "can't open file $file";
- while(<INFILE>) {
- if ( /xml version=/ ) {
- next;
- }
- print OUTFILE;
- }
- close(INFILE);
- }
-}
-
-print OUTFILE "</org.openoffice.Templates>\n";
-
-closedir(DIR);
-
-close(OUTFILE);
More information about the Libreoffice-commits
mailing list