From 22279c4381d0009c3acf569c6ccd4107255dfa60 Mon Sep 17 00:00:00 2001 From: Nareshkumar Rao Date: Fri, 14 May 2021 00:30:02 +0200 Subject: [PATCH] make deletion automated --- .gitignore | 1 + build.sh | 10 ++-------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 9aeb239..402403f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ librealsense/ sysroot-relativelinks.py toolchain.cmake output +librealsense2_pyrealsense2_aarch64.tar.gz \ No newline at end of file diff --git a/build.sh b/build.sh index dca0363..0a80e33 100755 --- a/build.sh +++ b/build.sh @@ -68,13 +68,7 @@ mkdir -p $CURDIR/output make DESTDIR=$CURDIR/output install cd $CURDIR/output -tar cvzf ./librealsense2_pyrealsense2_aarch64.tar.gz ./* +tar cvzf $CURDIR/librealsense2_pyrealsense2_aarch64.tar.gz ./* cd $CURDIR -read -p "Remove generated build files (incl. toolchain, librealsense source and Raspi libraries)? " -n 1 -r -echo # (optional) move to a new line -if [[ $REPLY =~ ^[Yy]$ ]] -then - rm -rf ./sysroot ./tools ./librealsense ./output -fi - +rm -rf ./sysroot ./tools ./librealsense ./output ./sysroot-relativelinks.py ./toolchain.cmake