File: checkbashisms.sh

package info (click to toggle)
funcoeszz 21.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 4,424 kB
  • sloc: sh: 27,355; perl: 509; xml: 54; makefile: 8
file content (25 lines) | stat: -rwxr-xr-x 583 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# 2013-02-25
# Aurelio Marinho Jargas
#
# Wrapper to run checkbashisms.pl in Funções ZZ files
#
# Lastest version of checkbashisms.pl script:
# http://anonscm.debian.org/gitweb/?p=devscripts/devscripts.git;a=tree;f=scripts;hb=HEAD
# Man page:
# http://manpages.ubuntu.com/manpages/lucid/man1/checkbashisms.1.html

cd $(dirname "$0")
cd ..

eco() { echo -e "\033[36;1m$*\033[m"; }

for f in zz/*
do
	eco ----------------------------------------------------------------
	eco $f
	echo '#!/bin/sh' > _tmp
	cat $f >> _tmp
	util/checkbashisms.pl -n --extra _tmp
done
rm _tmp