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.
 
 
 
 
 
 

23 lines
724 B

  1. #!/bin/sh
  2. set -e
  3. if [ ! -f "$1" ]; then
  4. (
  5. echo "Syntax: $0 [path-to-dist.tar.gz]"
  6. echo
  7. echo "Build such file with ./autogen.sh; ./configure; make dist-gzip"
  8. echo "This tool can then be used to check the differences between the git"
  9. echo "repository and the tar; it might show added files for autotools"
  10. echo "(compile, configure, Makefile.in, m4, ...) and should remove"
  11. echo ".gitignore files and some helper scripts (packdist.sh and this file)"
  12. ) >&2
  13. exit 1
  14. fi
  15. tmpdir=$(mktemp --tmpdir -d diff-dist-tar-git-XXXXXXX)
  16. trap 'rm -rf "${tmpdir}"' EXIT
  17. git archive --format tar.gz -o "${tmpdir}/lighttpd.tar.gz" --prefix "lighttpd-2.0.0/" HEAD
  18. tardiff --modified --autoskip "${tmpdir}/lighttpd.tar.gz" "$1"