Add a copy/ install wrapper (use in steps function)
parent
b9ca592644
commit
8f0fb28cf7
10
aptpkg
10
aptpkg
|
@ -27,6 +27,14 @@ error_usage_die(){
|
|||
exit 1
|
||||
}
|
||||
|
||||
# Copy/ install wrapper for files
|
||||
cin-bin(){
|
||||
install -Dm755 "$@"
|
||||
}
|
||||
cin-file(){
|
||||
install -Dm644 "$@"
|
||||
}
|
||||
|
||||
# Check that "build" file exists in directory
|
||||
check(){
|
||||
if ! [ -f "$1/build" ]; then
|
||||
|
@ -67,7 +75,7 @@ build_file(){
|
|||
gen_control_file "$@"
|
||||
|
||||
for maintfile in preinst postinst prerm postrm; do
|
||||
[ -f $maintfile ] && cp $maintfile "$builddir"/debian/
|
||||
[ -f $maintfile ] && cin-bin $maintfile "$builddir"/debian/
|
||||
done
|
||||
|
||||
cd -
|
||||
|
|
Loading…
Reference in New Issue