mirror of
https://github.com/EttusResearch/uhd.git
synced 2026-10-25 17:36:10 +00:00
tools: upload_debs: more strictly check for clean repository
This commit is contained in:
parent
b94b6a8cbb
commit
7ffe939e77
@ -21,8 +21,9 @@ then
|
||||
echo "This script must be run from UHD's top-level directory."
|
||||
exit 1
|
||||
fi
|
||||
if [ -f fpga-src/README.md ]; then
|
||||
echo "This script requires a clean repository without fpga-src checked out!."
|
||||
|
||||
if [ -n "$(git status --porcelain --untracked-files=all)" ]; then
|
||||
echo "This script requires a clean repository!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -70,7 +71,7 @@ fi
|
||||
# or are unnecessary for Debian builds
|
||||
rm -rf ${UHD_TOP_LEVEL}/../uhd-${VERSION}
|
||||
mkdir ${UHD_TOP_LEVEL}/../uhd-${VERSION}
|
||||
rsync --exclude='.ci' --exclude='.git*' --exclude='/debian/' --exclude='*.swp' --exclude='/fpga-src/' --exclude='/build' --exclude='/images/*.pyc' --exclude='/images/uhd-*' --exclude='tags' --exclude='/host/cmake/msvc/' --exclude='/host/cmake/vcpkg/' --exclude='/fpga/usrp1' --exclude='/fpga/usrp2' --exclude='/fpga/usrp3/top/b200' --exclude='/fpga/usrp3/top/b2xxmini' --exclude='/fpga/usrp3/lib/*_200' -a ${UHD_TOP_LEVEL}/ ${UHD_TOP_LEVEL}/../uhd-${VERSION}/
|
||||
rsync --exclude='.git' --exclude='.ci' --exclude='.git*' --exclude='.clang*' --exclude='/debian/' --exclude='*.swp' --exclude='/fpga-src/' --exclude='/build' --exclude='/images/*.pyc' --exclude='/images/uhd-*' --exclude='tags' --exclude='/host/cmake/msvc/' --exclude='/host/cmake/vcpkg/' --exclude='/fpga/usrp1' --exclude='/fpga/usrp2' --exclude='/fpga/usrp3/top/b200' --exclude='/fpga/usrp3/top/b2xxmini' --exclude='/fpga/usrp3/lib/*_200' -a ${UHD_TOP_LEVEL}/ ${UHD_TOP_LEVEL}/../uhd-${VERSION}/
|
||||
if [ $? != 0 ]
|
||||
then
|
||||
echo "Failed to copy UHD source."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user