Browse Source

make deletion automated

master
Nareshkumar Rao 4 years ago
parent
commit
22279c4381
  1. 1
      .gitignore
  2. 10
      build.sh

1
.gitignore

@ -4,3 +4,4 @@ librealsense/
sysroot-relativelinks.py
toolchain.cmake
output
librealsense2_pyrealsense2_aarch64.tar.gz

10
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

Loading…
Cancel
Save