File: letexec

package info (click to toggle)
derivations 0.53.20120414-1.2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,208 kB
  • ctags: 486
  • sloc: cpp: 1,634; perl: 600; makefile: 153; sh: 116
file content (14 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/bash -e

# The .diff.gz patch format does not preserve executable flags on files.
# This is fine, but run the present script as
#
#     bash helper/letexec
#
# after unpacking the source to let the appropriate helpers be
# executable.

for A in $( find $( dirname $0 ) -mindepth 1 -maxdepth 1 -type f ) ; do
  sed -ne '/^#!/q0;q1' $A && chmod a+x $A
done