[Swift-commit] r4828 - www

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Sun Jul 17 20:51:26 CDT 2011


Author: davidk
Date: 2011-07-17 20:51:26 -0500 (Sun, 17 Jul 2011)
New Revision: 4828

Modified:
   www/push_to.sh
Log:
Add licensing file templates and permission fixes


Modified: www/push_to.sh
===================================================================
--- www/push_to.sh	2011-07-18 01:19:39 UTC (rev 4827)
+++ www/push_to.sh	2011-07-18 01:51:26 UTC (rev 4828)
@@ -1,5 +1,10 @@
 #!/bin/bash
 
+# File permissions
+CHMOD_DIRECTORY_MODE="775"
+CHMOD_FILE_MODE="664"
+GROUP="vdl2-svn"
+
 # Verify command line arguments
 if [ -n "$1" ]; then
    DESTINATION=$1
@@ -31,6 +36,9 @@
 links/index.php
 template_info/template.php
 docs/index.php
+docs/license.php
+docs/tracking_policy.php
+docs/usage_data.php
 updatenodocs.sh
 dhtml.js
 index.html
@@ -95,6 +103,8 @@
 # Make sure destination directory exists
 if [ ! -d "$DESTINATION" ]; then
    mkdir $DESTINATION > /dev/null 2>&1 || exit 1
+   chgrp $GROUP $DESTINATION > /dev/null 2>&1
+   chmod $CHMOD_DIRECTORY_MODE $DESTINATION > /dev/null 2>&1
 fi
 
 # Copy files to destination
@@ -102,9 +112,11 @@
 do
    destination_dir=`dirname $FILE`
    mkdir -p $DESTINATION/$destination_dir
-   cp $FILE $DESTINATION/$destination_dir/
-   chmod a+r $DESTINATION/$destination_dir/$FILE > /dev/null 2>&1
+   chgrp $GROUP $DESTIONATION/$destination_dir > /dev/null 2>&1
+   chmod $CHMOD_DIRECTORY_MODE $DESTINATION > /dev/null 2>&1
+   cp $FILE $DESTINATION/$destination_dir/ > /dev/null 2>&1
+   chgrp $GROUP $FILE > /dev/null 2>&1
+   chmod $CHMOD_FILE_MODE $FILE > /dev/null 2>&1
 done
 
 popd > /dev/null 2>&1
-




More information about the Swift-commit mailing list