Fixes a couple issues with scripts from Modules/ and Templates/

The first hunk fixes permissions of Modules/SquishRunTestCase.sh script.
INSTALL() used to remove executable permissions. The second hunk adds #!/bin/sh
to the top of the script Templates/cygwin-package.sh.in. All executable
interpreted scripts should have this directive.
ci/unstable
Modestas Vainius 15 years ago
parent 92f9902681
commit 579dddb1fe

2
debian/changelog vendored

@ -21,6 +21,8 @@ cmake (2.8.0~rc2-0r2) UNRELEASED; urgency=low
problems. problems.
* Add desktop-remove-deprecated.diff - remove deprecated Enconding field from * Add desktop-remove-deprecated.diff - remove deprecated Enconding field from
CMake.desktop. CMake.desktop.
* Add scripts-and-permissions.diff - fixes a couple issues with scripts
from Modules/ and Templates/ (thanks to lintian).
-- Modestas Vainius <modestas@vainius.eu> Sun, 04 Oct 2009 10:31:17 +0300 -- Modestas Vainius <modestas@vainius.eu> Sun, 04 Oct 2009 10:31:17 +0300

@ -0,0 +1,29 @@
From: Modestas Vainius <modestas@vainius.eu>
Subject: Fix scripts and their permissions in Modules/ and Templates/
The first hunk fixes permissions of Modules/SquishRunTestCase.sh script.
INSTALL() used to remove executable permissions.
.
The second hunk adds #!/bin/sh to the top of the script
Templates/cygwin-package.sh.in. All executable interpreted scripts
should have this directive.
Forwarded: yes.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -460,7 +460,7 @@
DIRECTORY_PERMISSIONS OWNER_READ OWNER_EXECUTE OWNER_WRITE
GROUP_READ GROUP_EXECUTE
WORLD_READ WORLD_EXECUTE
- PATTERN "*.sh.in" PERMISSIONS OWNER_READ OWNER_EXECUTE OWNER_WRITE
+ PATTERN "*.sh*" PERMISSIONS OWNER_READ OWNER_EXECUTE OWNER_WRITE
GROUP_READ GROUP_EXECUTE
WORLD_READ WORLD_EXECUTE
PATTERN "CVS" EXCLUDE
--- a/Templates/cygwin-package.sh.in
+++ b/Templates/cygwin-package.sh.in
@@ -1,3 +1,5 @@
+#!/bin/sh
+
# this is a sample shell script used for building a cmake
# based project for a cygwin setup package.

@ -4,3 +4,4 @@ executables-dont-need-fpic.diff
fix_bashisms.diff fix_bashisms.diff
manpage_friendly_docs.diff manpage_friendly_docs.diff
desktop-remove-deprecated.diff desktop-remove-deprecated.diff
scripts-and-permissions.diff

Loading…
Cancel
Save