Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ##
- ## This script is used to strip the boost release archive from
- ## tests, exampels and docs
- ##
- ##
- BASE_DIR=${1}
- ##
- ## Clean top level doc folder
- ##
- if [ -d "${BASE_DIR}/doc" ]; then
- rm -rf ${BASE_DIR}/doc
- fi
- ##
- ## Clean doc, example and test folders
- ## from each lib
- ##
- echo "BASE_DIR = ${BASE_DIR}"
- for file in ${BASE_DIR}/libs/*;
- do
- echo $file
- if [ -d "${file}" ];
- then
- if [ -d "${file}/doc" ];
- then
- rm -rf "${file}/doc"
- fi
- if [ -d "${file}/example" ];
- then
- rm -rf "${file}/example"
- fi
- if [ -d "${file}/test" ];
- then
- rm -rf "${file}/test"
- fi
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement