rewrite scripts
try to provide better syntax and avoid using bash
This commit is contained in:
12
debian/rules.d/tools/perf/Makefile
vendored
12
debian/rules.d/tools/perf/Makefile
vendored
@@ -50,11 +50,11 @@ all:
|
||||
+$(MAKE_PERF) -C $(top_srcdir)/tools/perf -f Makefile.perf all DESTDIR=dummy
|
||||
+$(MAKE_PERF) -C $(top_srcdir)/tools/perf/Documentation man
|
||||
# Check that perf didn't get linked against incompatibly-licensed libraries
|
||||
@if readelf -d $(CURDIR)/perf | sed -rne 's/.*NEEDED.*\[(.*)\]/\1/p' | grep -E '\blib(bfd|crypto)'; then \
|
||||
echo; \
|
||||
echo 'perf linked against incompatibly-licensed libraries'; \
|
||||
echo; \
|
||||
exit 1; \
|
||||
@if readelf -d $(CURDIR)/perf | sed -rne 's/.*NEEDED.*\[(.*)\]/\1/p' | grep -E '\blib(bfd|crypto)' ; then \
|
||||
echo ; \
|
||||
echo 'perf linked against incompatibly-licensed libraries' ; \
|
||||
echo ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
# Check that it links against abi::__cxa_demangle from libstdc++
|
||||
grep __cxa_demangle $(CURDIR)/perf
|
||||
@@ -70,5 +70,5 @@ install:
|
||||
rm -f $(DESTDIR)/usr/bin/trace
|
||||
mkdir -p $(DESTDIR)/usr/share/bash-completion/
|
||||
mv $(DESTDIR)/etc/bash_completion.d \
|
||||
$(DESTDIR)/usr/share/bash-completion/completions
|
||||
$(DESTDIR)/usr/share/bash-completion/completions
|
||||
rmdir --ignore-fail-on-non-empty $(DESTDIR)/etc
|
||||
|
Reference in New Issue
Block a user