brintos

brintos / linux-shallow public Read only

0
0
Text · 718 B · b3075c1 Raw
24 lines · plain
1#!/bin/sh2# SPDX-License-Identifier: GPL-2.03# Test one of the main kernel Makefile targets to generate a perf sources tarball4# suitable for build outside the full kernel sources.5#6# This is to test that the tools/perf/MANIFEST file lists all the files needed to7# be in such tarball, which sometimes gets broken when we move files around,8# like when we made some files that were in tools/perf/ available to other tools/9# codebases by moving it to tools/include/, etc.10set -e11 12PERF=$113cd ${PERF}/../..14make perf-targz-src-pkg15TARBALL=$(ls -rt perf-*.tar.gz)16TMP_DEST=$(mktemp -d)17tar xf ${TARBALL} -C $TMP_DEST18rm -f ${TARBALL}19cd - > /dev/null20make -C $TMP_DEST/perf*/tools/perf21RC=$?22rm -rf ${TMP_DEST}23exit $RC24