Added PDFs to the generated content tracked by the publish_hbase_website script, enabled test to abort the automatic svn commit if it changes too many files.
This commit is contained in:
parent
d58cce1694
commit
b4367732c8
|
@ -151,7 +151,7 @@ fi
|
||||||
|
|
||||||
# Delete known auto-generated content from trunk
|
# Delete known auto-generated content from trunk
|
||||||
echo "Deleting known auto-generated content from SVN"
|
echo "Deleting known auto-generated content from SVN"
|
||||||
rm -rf apidocs devapidocs xref xref-test book book.html java.html
|
rm -rf apidocs devapidocs xref xref-test book book.html java.html apache_hbase_reference_guide.pdf*
|
||||||
|
|
||||||
# Copy generated site to svn -- cp takes different options on Darwin and GNU
|
# Copy generated site to svn -- cp takes different options on Darwin and GNU
|
||||||
echo "Copying the generated site to SVN"
|
echo "Copying the generated site to SVN"
|
||||||
|
@ -166,13 +166,15 @@ cp $COPYOPTS $GIT_DIR/target/staging/* .
|
||||||
# Look for things we need to fix up in svn
|
# Look for things we need to fix up in svn
|
||||||
|
|
||||||
echo "Untracked files: svn add"
|
echo "Untracked files: svn add"
|
||||||
svn status |grep '?' |sed -e "s/[[:space:]]//g"|cut -d '?' -f 2|while read i
|
svn status |grep '?' |sed -e "s/[[:space:]]//g"|cut -d '?' -f 2|while read i; do
|
||||||
do svn add $i
|
svn add $i
|
||||||
|
echo "Added $i"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Locally deleted files: svn del"
|
echo "Locally deleted files: svn del"
|
||||||
svn status |grep '!' |sed -e "s/[[:space:]]//g"|cut -d '!' -f 2|while read i
|
svn status |grep '!' |sed -e "s/[[:space:]]//g"|cut -d '!' -f 2|while read i; do
|
||||||
do svn del $i
|
svn del $i
|
||||||
|
echo "Deleted $i"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Display the proposed changes. I filtered out
|
# Display the proposed changes. I filtered out
|
||||||
|
@ -196,12 +198,12 @@ SVN_NUM_DIFF=`expr $SVN_NEW_NUMFILES - $SVN_OLD_NUMFILES|sed 's/-//g'`
|
||||||
# The whole site is only 500 MB so a difference of 10 MB is huge
|
# The whole site is only 500 MB so a difference of 10 MB is huge
|
||||||
# In this case, we should abort because something is wrong
|
# In this case, we should abort because something is wrong
|
||||||
# Leaving this commented out for now until we get some benchmarks
|
# Leaving this commented out for now until we get some benchmarks
|
||||||
#if [ $SVN_SIZE_DIFF > 10 -o $SVN_NUM_DIFF > 50 ]; then
|
if [ $SVN_SIZE_DIFF > 10 -o $SVN_NUM_DIFF > 50 ]; then
|
||||||
# echo "This commit would cause the website to change sizes by \
|
echo "This commit would cause the website to change sizes by \
|
||||||
# $SVN_DIFF MB and $SVN_NUM_DIFF files. There is likely a problem.
|
$SVN_DIFF MB and $SVN_NUM_DIFF files. There is likely a problem.
|
||||||
# Aborting."
|
Aborting."
|
||||||
# exit 1
|
exit 1
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ $INTERACTIVE ]; then
|
if [ $INTERACTIVE ]; then
|
||||||
|
|
Loading…
Reference in New Issue