From 196204a9ee62c31458c64b44e4d2ef49677b80f4 Mon Sep 17 00:00:00 2001 From: MJ Ray Date: Mon, 30 Jan 2012 21:06:57 +0000 Subject: [PATCH] =?UTF-8?q?Bug=207476=20=E2=80=93=20Remove=20executable=20bit=20from=20files=20that=20probably=20should=20not=20be=20executed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xt/find-misplaced-executables | 41 ++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-) mode change 100755 => 100644 C4/Auth.pm mode change 100755 => 100644 C4/ImportExportFramework.pm mode change 100755 => 100644 C4/TTParser.pm mode change 100755 => 100644 C4/XSLT.pm mode change 100755 => 100644 acqui/pdfformat/layout2pages.pm mode change 100755 => 100644 acqui/pdfformat/layout3pages.pm mode change 100755 => 100644 etc/zebradb/marc_defs/marc21/biblios/record.abs mode change 100755 => 100644 installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql mode change 100755 => 100644 installer/data/mysql/sysprefs.sql mode change 100755 => 100644 installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql mode change 100755 => 100644 koha-tmpl/opac-tmpl/prog/en/css/opac.css mode change 100755 => 100644 koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc mode change 100755 => 100644 koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt mode change 100755 => 100644 koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt mode change 100755 => 100644 koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl create mode 100755 xt/find-misplaced-executables diff --git a/C4/Auth.pm b/C4/Auth.pm old mode 100755 new mode 100644 diff --git a/C4/ImportExportFramework.pm b/C4/ImportExportFramework.pm old mode 100755 new mode 100644 diff --git a/C4/TTParser.pm b/C4/TTParser.pm old mode 100755 new mode 100644 diff --git a/C4/XSLT.pm b/C4/XSLT.pm old mode 100755 new mode 100644 diff --git a/acqui/pdfformat/layout2pages.pm b/acqui/pdfformat/layout2pages.pm old mode 100755 new mode 100644 diff --git a/acqui/pdfformat/layout3pages.pm b/acqui/pdfformat/layout3pages.pm old mode 100755 new mode 100644 diff --git a/etc/zebradb/marc_defs/marc21/biblios/record.abs b/etc/zebradb/marc_defs/marc21/biblios/record.abs old mode 100755 new mode 100644 diff --git a/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql b/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql old mode 100755 new mode 100644 diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql old mode 100755 new mode 100644 diff --git a/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql b/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql old mode 100755 new mode 100644 diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css old mode 100755 new mode 100644 diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc b/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc old mode 100755 new mode 100644 diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt old mode 100755 new mode 100644 diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt old mode 100755 new mode 100644 diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl old mode 100755 new mode 100644 diff --git a/xt/find-misplaced-executables b/xt/find-misplaced-executables new file mode 100755 index 0000000..835aa70 --- /dev/null +++ b/xt/find-misplaced-executables @@ -0,0 +1,41 @@ +#!/bin/sh +# +# Find Koha source files that are not in UTF-8. Non-textual files are ignored. +# This script requires the isutf8 program from Joey Hess's moreutils package. +# See for info. +# +# Copyright 2010 Catalyst IT Ltd +# +# This file is part of Koha. +# +# Koha is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# +# Koha is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR +# A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +set -e + +find . \ + -name misc -prune \ + -o -name svc -prune \ + -o -name xt -prune \ + -o -name t -prune \ + -o -name .git -prune \ + -o -name blib -prune \ + -o -name scripts -prune \ + -o -name debian -prune \ + -o -executable -type f \ + '!' -name '*.pl' \ + '!' -name '*.sh' \ + '!' -name '*.plugin' \ + '!' -name unapi \ + -print + -- 1.7.2.5