POC fonctionnel
This commit is contained in:
14
hooks/postbuild/debian/export-dist-postbuild
Executable file
14
hooks/postbuild/debian/export-dist-postbuild
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
function move_output_to_dist {
|
||||
find . -maxdepth 1 -name "$1" -type f -print0 | xargs -0r mv -t /dist/
|
||||
}
|
||||
|
||||
# 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}"
|
Reference in New Issue
Block a user