Publish "export" dir at destination's top level
Before this patch the "export" dir was published at PUBLISH_DIR/export. This adds an unnecessary sub-directory under PUBLISH_DIR. Publish it directly in PUBLISH_DIR instead. Signed-off-by: Davlet Panech <davlet.panech@windriver.com> Change-Id: Ibcbb02e7590d5fbc847bb2cc4d00b69096dbeab1
This commit is contained in:
parent
6a038b4871
commit
35d02563e7
@ -14,11 +14,11 @@ load_build_env
|
||||
$DRY_RUN && bail "DRY_RUN not supported, bailing out" || :
|
||||
|
||||
src_dir="$WORKSPACE_ROOT/export"
|
||||
dst_dir="$PUBLISH_DIR/export"
|
||||
dst_dir="$PUBLISH_DIR"
|
||||
|
||||
rm -rfv --one-file-system "$dst_dir"
|
||||
! dir_is_empty "$src_dir" || exit 0
|
||||
|
||||
notice "copying export dir $dst_dir"
|
||||
cp -avr "$src_dir" "$dst_dir"
|
||||
mkdir -p "$dst_dir"
|
||||
find "$src_dir" -mindepth 1 -maxdepth 1 -exec cp -vr --dereference -t "$dst_dir" '{}' '+'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user