Assists music production by grouping standalone programs into sessions. Community version of "Non Session Manager".
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.

27 lines
557B

  1. #!/bin/sh
  2. # May 2008 Jonathan Moore Liles
  3. #
  4. # Use git to build a distribution tarball.
  5. #
  6. # USAGE:
  7. #
  8. # dist foo 1.2.0 extra-files ...
  9. #
  10. # This will build a tarball foo-1.2.0.tar.bz2 using git tag 'v1.2.0'
  11. #
  12. # Files not in git but listed as arguemnts will also be included in the archive.
  13. . colors
  14. NAME="$1"
  15. shift 1
  16. VERSION="$1"
  17. shift 1
  18. EXTRA_DIST="$@"
  19. PREFIX="${NAME}-${VERSION}"
  20. git archive --prefix="${PREFIX}/" v${VERSION} > ${PREFIX}.tar
  21. tar --owner 0 --group 0 --transform "s:^:${PREFIX}/:" -rf ${PREFIX}.tar ${EXTRA_DIST}
  22. bzip2 -f ${PREFIX}.tar