build scripts: create MD5SUMS file
Minor improvements: * Remove 'README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt' file * Create MD5SUMS file Signed-off-by: Javier Viguera <javier.viguera@digi.com> (cherry picked from commit 4be702c44945d200c01818227604cc6d0f818931) Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
66dc64f9f2
commit
8b0db7612d
|
|
@ -57,12 +57,16 @@ copy_images() {
|
||||||
else
|
else
|
||||||
cp -r tmp/deploy/images ${1}/
|
cp -r tmp/deploy/images ${1}/
|
||||||
fi
|
fi
|
||||||
# Jenkins artifact archiver does not copy symlinks, so remove them
|
|
||||||
|
# Images directory post-processing
|
||||||
|
# - Jenkins artifact archiver does not copy symlinks, so remove them
|
||||||
# beforehand to avoid ending up with several duplicates of the same
|
# beforehand to avoid ending up with several duplicates of the same
|
||||||
# files.
|
# files.
|
||||||
if [ -d "${1}/images" ]; then
|
# - Remove 'README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt' files
|
||||||
find ${1}/images -type l -delete
|
# - Create MD5SUMS file
|
||||||
fi
|
find ${1} -type l -delete
|
||||||
|
find ${1} -type f -name 'README_-_DO_NOT_DELETE*' -delete
|
||||||
|
find ${1} -type f -not -name MD5SUMS -print0 | xargs -r -0 md5sum | sed -e "s,${1}/,,g" | sort -k2,2 > ${1}/MD5SUMS
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
||||||
12
sdk/build.sh
12
sdk/build.sh
|
|
@ -79,12 +79,16 @@ copy_images() {
|
||||||
cp -r tmp/deploy/sdk ${1}/
|
cp -r tmp/deploy/sdk ${1}/
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# Jenkins artifact archiver does not copy symlinks, so remove them
|
|
||||||
|
# Images directory post-processing
|
||||||
|
# - Jenkins artifact archiver does not copy symlinks, so remove them
|
||||||
# beforehand to avoid ending up with several duplicates of the same
|
# beforehand to avoid ending up with several duplicates of the same
|
||||||
# files.
|
# files.
|
||||||
if [ -d "${1}/images" ]; then
|
# - Remove 'README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt' files
|
||||||
find ${1}/images -type l -delete
|
# - Create MD5SUMS file
|
||||||
fi
|
find ${1} -type l -delete
|
||||||
|
find ${1} -type f -name 'README_-_DO_NOT_DELETE*' -delete
|
||||||
|
find ${1} -type f -not -name MD5SUMS -print0 | xargs -r -0 md5sum | sed -e "s,${1}/,,g" | sort -k2,2 > ${1}/MD5SUMS
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue