Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Reduce the size of the build directory
by removing .git and other unneeded files
  • Loading branch information
pstorz committed Apr 19, 2017
1 parent 7c264b7 commit 6b80cb3
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions scripts/setup
Expand Up @@ -59,24 +59,24 @@ fi

scripts/create_sed



#
# Now turn on DEVELOPER for regression testing
#
echo "s%^.*define DEVELOPER 1.*$%#define DEVELOPER 1%g" >tmp/t$$
sed -f tmp/t$$ build/src/include/version.h >tmp/o$$
cp tmp/o$$ build/src/include/version.h

#
# Remove unneeded directories
#
rm -rf build/txt build/src/testprogs
#rm -rf build/.git

sed -f tmp/sed_tmp scripts/regress-config.in >scripts/regress-config
chmod 755 scripts/regress-config
cp scripts/regress-config build
cd build
rm -f Makefile config.*



#
# Run Bareos configuration, make, install
#
Expand Down Expand Up @@ -124,3 +124,22 @@ echo "Running database creation scripts"
./make_bareos_tables ${DBTYPE}
./grant_bareos_privileges ${DBTYPE}
cd ${cwd}


#
# Remove unneeded directories
#
rm -rf build/txt build/src/testprogs
rm -rf build/.git

rm build/cscope.out
rm build/tags
rm -Rf build/src/ndmp

# remove object files
find build/ -name '*.o' | xargs rm
find build/ -name '*.so' | xargs rm
find build/ -name '*.lo' | xargs rm
find build/ -name '*.la' | xargs rm
find build/ -name '.libs' | xargs rm -R

0 comments on commit 6b80cb3

Please sign in to comment.