makerelease.sh 789 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh
  2. # -*- coding: utf-8 -*-
  3. srcdir="$(realpath "$0" | xargs dirname)"
  4. srcdir="$srcdir/.."
  5. # Import the makerelease.lib
  6. # https://bues.ch/cgit/misc.git/tree/makerelease.lib
  7. die() { echo "$*"; exit 1; }
  8. for path in $(echo "$PATH" | tr ':' ' '); do
  9. [ -f "$MAKERELEASE_LIB" ] && break
  10. MAKERELEASE_LIB="$path/makerelease.lib"
  11. done
  12. [ -f "$MAKERELEASE_LIB" ] && . "$MAKERELEASE_LIB" || die "makerelease.lib not found."
  13. hook_get_version()
  14. {
  15. version="$(cargo_local_pkg_version letmein)"
  16. }
  17. hook_regression_tests()
  18. {
  19. default_hook_regression_tests "$@"
  20. sh "$1"/tests/run-tests.sh
  21. }
  22. project=letmein
  23. conf_upload_packages="letmein-proto letmein-fwproto letmein-conf letmein-systemd letmein-seccomp letmein letmeinfwd letmeind"
  24. makerelease "$@"
  25. # vim: ts=4 sw=4 expandtab