summaryrefslogtreecommitdiff
path: root/officecfg
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-02-05 16:37:42 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-02-05 22:38:01 +0100
commit578fa77e8922ee9bf97e8b17ba4fb2b9bfae6e61 (patch)
tree64e6df66d70f37e945e44a52cb7f849e6701e302 /officecfg
parentffd8369b909c86653ef30593fddf67c9f5308583 (diff)
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@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'officecfg')
-rwxr-xr-xofficecfg/util/template.gen51
1 files changed, 0 insertions, 51 deletions
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, ".");
-
-@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);