Initial commit
This commit is contained in:
23
buildtools/get_documentation
Normal file
23
buildtools/get_documentation
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Getting proprietary documentation..."
|
||||
|
||||
if [ ! -e buildtools.conf ]; then
|
||||
cp buildtools.conf.delivered buildtools.conf
|
||||
fi
|
||||
source buildtools.conf
|
||||
|
||||
if [ "$1" = "b" ]; then
|
||||
docpath=$BUILD_DOC_PATH
|
||||
mkdir -p /mnt/custom/customcd/isoroot/RescueBRU_Documentation
|
||||
rsync -rlptDvz $docpath/RescueBRU_Documentation /mnt/custom/customcd/isoroot/
|
||||
find /mnt/custom/customcd/isoroot/RescueBRU_Documentation/ -type f ! -name '*.pdf' ! -name '*.xls' -delete
|
||||
elif [ "$1" = "d" ]; then
|
||||
echo "This is a development machine, so leaving documentation as-is."
|
||||
else
|
||||
echo "Unknown system type parameter."
|
||||
echo "Must be b for build machine or d for dev system."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -f /mnt/custom/customcd/files/root/.bash_history
|
||||
Reference in New Issue
Block a user