File: AtomicFile.t

package info (click to toggle)
timew 1.9.1%2Bds.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,436 kB
  • sloc: cpp: 30,358; python: 6,829; sh: 706; makefile: 15
file content (14 lines) | stat: -rwxr-xr-x 290 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
BASEDIR="$( dirname "$0" )"

if [ "$(uname -s)" = "Darwin" ] ; then
  DLL_TOOL="otool -L"
else
  DLL_TOOL="ldd"
fi

if "${DLL_TOOL}" "${BASEDIR}/AtomicFileTest" | grep -q 'libfiu' ; then
    exec fiu-run -x "${BASEDIR}/AtomicFileTest"
else
    exec "${BASEDIR}/AtomicFileTest"
fi