Always clean up the scratch dir

The scratch directory, holding the extracted squashfs image and
the temporary UBI image, can be quite large, >40MB.
Use trap to make sure it always gets cleaned up.

Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Change-Id: I0289036dcf2bbf40fc76cf5ebf9dde1d47379435
1 file changed
tree: dd202e76112accef997186c27c5aad52cc9de654
  1. m4/
  2. org/
  3. test/
  4. .gitignore
  5. activation.cpp
  6. activation.hpp
  7. bootstrap.sh
  8. configure.ac
  9. generate-squashfs
  10. generate-ubi
  11. item_updater.cpp
  12. item_updater.hpp
  13. item_updater_main.cpp
  14. LICENSE
  15. Makefile.am
  16. README.md
  17. serialize.cpp
  18. serialize.hpp
  19. version.cpp
  20. version.hpp
  21. watch.cpp
  22. watch.hpp
README.md

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.