Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

make-dist 756B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/sh -e
  2. #
  3. # Copyright (c) 2009-2018 The strace developers.
  4. # All rights reserved.
  5. #
  6. # SPDX-License-Identifier: LGPL-2.1-or-later
  7. id="$(git rev-parse --verify "${1:-@}^{commit}")"
  8. j=-j`getconf _NPROCESSORS_ONLN 2> /dev/null` || j=
  9. distdir=strace-dist-$$
  10. abs_distdir="`pwd`/$distdir"
  11. trap 'chmod -Rf u+w $abs_distdir; rm -rf $abs_distdir' 1 2 15 0
  12. set -x
  13. git clone -q -n -s .git "$distdir"
  14. cd $distdir
  15. git checkout -f "$id"
  16. ./git-set-file-times
  17. ./bootstrap
  18. ./configure --enable-maintainer-mode
  19. make -s $j distcheck
  20. if git describe --exact-match --match='v*' >/dev/null; then
  21. make -s $j news-check
  22. else
  23. echo 'SKIP: make news-check'
  24. fi
  25. ./make-dsc strace-*.tar.gz > ../strace.dsc
  26. cat strace.spec > ../strace.spec
  27. mv -f strace-*.tar.[gx]z ..