File: hello-1

package info (click to toggle)
hello-debhelper 2.1.1-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,016 kB
  • ctags: 784
  • sloc: ansic: 6,498; sh: 4,100; makefile: 357; perl: 348; yacc: 316; sed: 16
file content (33 lines) | stat: -rwxr-xr-x 510 bytes parent folder | download | duplicates (4)
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
26
27
28
29
30
31
32
33
#! /bin/sh
# This script takes one argument.

trap 'rm -fr $tmpfiles' 1 2 3 15

LANGUAGE=
LC_ALL=
LC_MESSAGES=
LANG=
export LANGUAGE LC_ALL LC_MESSAGES LANG

tmpfiles="hello-test1.ok"
cat <<EOF > hello-test1.ok
Hello, world!
EOF

tmpfiles="$tmpfiles hello-test1.out"
: ${HELLO=hello}
${HELLO} > hello-test1.out

# $HELLO > test.out
# $HELLO sailor >> test.out
# $HELLO --traditional >> test.out

: ${DIFF=diff}
${DIFF} hello-test1.ok hello-test1.out
result=$?

rm -f $tmpfiles

exit $result

# hello ends here