You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2017/02/12 14:44:23 UTC

svn commit: r1782668 - /libcloud/site/trunk/scripts/stage-changes.sh

Author: tomaz
Date: Sun Feb 12 14:44:23 2017
New Revision: 1782668

URL: http://svn.apache.org/viewvc?rev=1782668&view=rev
Log:
Update stage-changes script to also include changed files inside source/*
directory.

Modified:
    libcloud/site/trunk/scripts/stage-changes.sh

Modified: libcloud/site/trunk/scripts/stage-changes.sh
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/scripts/stage-changes.sh?rev=1782668&r1=1782667&r2=1782668&view=diff
==============================================================================
--- libcloud/site/trunk/scripts/stage-changes.sh (original)
+++ libcloud/site/trunk/scripts/stage-changes.sh Sun Feb 12 14:44:23 2017
@@ -12,3 +12,17 @@ fi
 if [ "${REMOVED_FILES}" ]; then
     svn rm ${REMOVED_FILES}
 fi
+
+# Make sure we include all the files in source/* (minues source/_site*)
+ADDED_FILES=$(svn status source/ | sed -e '/^?/!d' -e 's/^?//')
+REMOVED_FILES=$(svn status source/ | sed -e '/^!/!d' -e 's/^!//')
+
+# Add new and modified
+if [ "${ADDED_FILES}" ]; then
+    svn add ${ADDED_FILES}
+fi
+
+# Remove deleted files
+if [ "${REMOVED_FILES}" ]; then
+    svn rm ${REMOVED_FILES}
+fi