libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1555285 - in /libcloud/site/trunk: README.md scripts/generate_site.sh scripts/generate_site_apache.sh scripts/stage-changes.sh
Date Fri, 03 Jan 2014 23:45:15 GMT
Author: tomaz
Date: Fri Jan  3 23:45:15 2014
New Revision: 1555285

URL: http://svn.apache.org/r1555285
Log:
Update readme, rename script, add new script for "staging" modified files. 

Added:
    libcloud/site/trunk/scripts/generate_site.sh
      - copied unchanged from r1555259, libcloud/site/trunk/scripts/generate_site_apache.sh
    libcloud/site/trunk/scripts/stage-changes.sh   (with props)
Removed:
    libcloud/site/trunk/scripts/generate_site_apache.sh
Modified:
    libcloud/site/trunk/README.md

Modified: libcloud/site/trunk/README.md
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/README.md?rev=1555285&r1=1555284&r2=1555285&view=diff
==============================================================================
--- libcloud/site/trunk/README.md (original)
+++ libcloud/site/trunk/README.md Fri Jan  3 23:45:15 2014
@@ -9,8 +9,10 @@ Note: Jekyll setup is based on my [blog'
 
 * Ruby 1.9 or above
 * Gems: `bundler` (gem install bundler)
+* jpgoptim (optional, for compressing images)
+* optipng (optional, for compressing images)
 
-## Installing Blog Ruby dependencies
+## Installing Ruby dependencies
 
 ```bash
 bundle install
@@ -25,9 +27,10 @@ bundle install
 ## Generating and Publishing the Website
 
 ```bash
-./scripts/generate_site_apache.sh
+./scripts/generate_site.sh
+./scripts/stage-changes.sh
 svn add generated/*
-svn commit -m "Generate website"
+svn commit generated/ -m "Generate website"
 ```
 
 [1]: http://jekyllrb.com/

Added: libcloud/site/trunk/scripts/stage-changes.sh
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/scripts/stage-changes.sh?rev=1555285&view=auto
==============================================================================
--- libcloud/site/trunk/scripts/stage-changes.sh (added)
+++ libcloud/site/trunk/scripts/stage-changes.sh Fri Jan  3 23:45:15 2014
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+
+ADDED_FILES=$(svn status generated/ | sed -e '/^?/!d' -e 's/^?//')
+REMOVED_FILES=$(svn status generated/ | 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

Propchange: libcloud/site/trunk/scripts/stage-changes.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message