File: gnuify

package info (click to toggle)
squeak-vm 1%3A4.10.2.2614-4.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 13,284 kB
  • ctags: 15,344
  • sloc: ansic: 75,096; cs: 11,191; objc: 5,494; sh: 3,170; asm: 1,533; cpp: 449; pascal: 372; makefile: 366; awk: 103
file content (18 lines) | stat: -rwxr-xr-x 295 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# 
# Last edited: 2009-09-17 08:47:30 by piumarta on ubuntu.piumarta.com

gfy="$1"
src="$2"
dst="$3"
log="${dst}.log"

rm -f "${dst}" "${log}"

exec >> "${log}" 2>&1

set -x

try () { "$1" -f "${gfy}" "${src}" > "${dst}" 2>> "${log}"; }

try gawk || try awk || cp -p "${src}" "${dst}"