Tamarin/hooks/99-export-dist-postbuild

20 lines
415 B
Plaintext
Raw Permalink Normal View History

2015-08-04 23:58:43 +02:00
#!/bin/bash
source "${TAMARIN_UTIL}"
function move_output_to_dist {
find '../' -maxdepth 1 -name "$1" -type f -print0 | xargs -0r mv -t /dist/
}
2015-08-04 23:58:43 +02:00
# Create new directory
mkdir -p /dist
# Move generated files
move_output_to_dist "*.deb"
move_output_to_dist "*.changes"
move_output_to_dist "*.dsc"
move_output_to_dist "*.tar.{bz2,gz,lzma,xz}"
2015-09-23 17:42:08 +02:00
# Configure files permissions
chown -R ${HOST_UID}:${HOST_GID} /dist