ba1d6eb9eb
resolves: rhbz#1975459
(cherry picked from commit dfd02f7fb4
)
19 lines
278 B
Bash
Executable File
19 lines
278 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
pkg-config --cflags augeas
|
|
pkg-config --libs augeas
|
|
|
|
src_dump="$(realpath source/examples/dump.c)"
|
|
|
|
tmpdir="$(mktemp -d)"
|
|
pushd "$tmpdir"
|
|
|
|
gcc -o dump $(pkg-config --cflags --libs augeas) "$src_dump"
|
|
test -x dump
|
|
./dump > /dev/null
|
|
|
|
popd
|
|
rm -rf "$tmpdir"
|