modified version of jenkins debian glue (https://github.com/mika/jenkins-debian-glue) for devuan
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.
 
 
 
 
 

25 lines
1.0 KiB

  1. #!/bin/sh
  2. cat <<EOF
  3. ┌──────────────────────────────────────────────────────────────────────────────┐
  4. │ Displaying content of generated Debian packages. │
  5. └──────────────────────────────────────────────────────────────────────────────┘
  6. EOF
  7. if ! which debc >/dev/null 2>&1 ; then
  8. echo "Error: debc executable not available, please install the devscripts Debian package." >&2
  9. exit 1
  10. fi
  11. CHANGES=$(find . -maxdepth 1 -name \*.changes ! -name \*_source.changes)
  12. if [ -n "$CHANGES" ] >/dev/null 2>&1 ; then
  13. for file in $CHANGES ; do
  14. debc "$file"
  15. done
  16. elif ls ./*.deb >/dev/null 2>&1 ; then
  17. debc ./*.deb
  18. else
  19. echo "No changes and deb files found in $(pwd), ignoring."
  20. fi