Changeset 1424


Ignore:
Timestamp:
03/17/18 10:28:29 (4 months ago)
Author:
gogo
Message:

Rename local_plugins to xinha-cdn, include examples in that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/contrib/make-release.sh

    r1422 r1424  
    3535 
    3636# Export 
    37 mkdir /tmp/Xinha-$VER 
    38 svn export $(pwd) /tmp/Xinha-$VER/xinha 
    39 cd /tmp/Xinha-$VER/xinha 
     37mkdir /tmp/xinha-$VER 
     38svn export $(pwd) /tmp/xinha-$VER/xinha 
     39cd /tmp/xinha-$VER/xinha 
    4040echo "xinha-$VER" >VERSION.TXT 
    4141 
     
    5555tar -cjvf xinha-$VER.tar.bz2 xinha 
    5656 
    57 # Make a strippped down plugins set for the plugins which must be run locally 
     57# Make a stripped down plugins set for the plugins which must be run locally 
    5858#  ie, ones that upload files or deal with the local server file system 
    59 mkdir local_plugins 
    60 mkdir local_plugins/contrib 
    61 mkdir local_plugins/plugins 
    62 cp -rp xinha/contrib/php-xinha.php         local_plugins/contrib 
    63 cp -rp xinha/contrib/.htaccess             local_plugins/contrib 
    64 cp -rp xinha/plugins/MootoolsFileManager   local_plugins/plugins 
    65 cp -rp xinha/plugins/Linker                local_plugins/plugins 
    66 cat >local_plugins/README.TXT <<'EOF' 
    67 Xinha Local Plugins  
     59mkdir xinha-cdn 
     60mkdir xinha-cdn/contrib 
     61mkdir xinha-cdn/plugins 
     62cp -rp xinha/contrib/php-xinha.php         xinha-cdn/contrib 
     63cp -rp xinha/contrib/.htaccess             xinha-cdn/contrib 
     64cp -rp xinha/plugins/MootoolsFileManager   xinha-cdn/plugins 
     65cp -rp xinha/plugins/Linker                xinha-cdn/plugins 
     66cp -rp xinha/examples                      xinha-cdn/examples 
     67 
     68# Some examples are not appropriate for the cdn 
     69rm -rf xinha-cdn/examples/Old_Newbie_Guide 
     70rm -rf xinha-cdn/examples/ExtendedDemo.html 
     71rm -rf xinha-cdn/examples/files/ext_example*php 
     72rm -rf xinha-cdn/examples/files/Extended.html 
     73 
     74# Comment out some examples from the index 
     75cat xinha-cdn/examples/index.html | sed -r 's/<h2>Exper/<!-- These are not applicable in a CDN environment: <h2>Exper/' | sed -r 's/(<.body>)/-->\1/' >xinha-cdn/examples/index.html.2 
     76mv xinha-cdn/examples/index.html.2  xinha-cdn/examples/index.html 
     77 
     78cat >xinha-cdn/README.TXT <<'EOF' 
     79Xinha CDN Local Distribution 
    6880-------------------------------------------------------------------------------- 
    6981 
     
    7284network. 
    7385 
    74 Consult the NewbieGuide ( http://trac.xinha.org/wiki/NewbieGuide )  
    75 for more complete details on Xinha configuration, however in short you can load 
    76 Xinha using local plugins like this (assuming you upload the local_plugins 
    77 directory to the root of your website). 
     86Consult the NewbieGuide ( http://trac.xinha.org/wiki/Documentation/NewbieGuide )  
     87for complete details on Xinha configuration and see the examples in the directory 
     88here for, err, examples. 
    7889 
    79   <script type="text/javascript" src="//s3-us-west-1.amazonaws.com/xinha/xinha-1.5-beta1/XinhaEasy.js"> 
    80     xinha_options = { 
    81       xinha_plugins: [ 
    82         'minimal',  
    83         // Note that from is a URL to the plugins directory inside the 
    84         //  local_plugins directory, adjust for where you upload. 
    85         {from: '/local_plugins/plugins', load: ['MootoolsFileManager'] }] 
    86       ], 
     90Especially take note of examples/UsingPhpPlugins.php 
    8791 
    88       xinha_config:            function(xinha_config)  
    89       { 
    90          
    91         // Configure the File Manager 
    92         with (xinha_config.MootoolsFileManager) 
    93         {  
    94           <?php  
    95             require_once($_SERVER['DOCUMENT_ROOT'].'/local_plugins/contrib/php-xinha.php'); 
    96             xinha_pass_to_php_backend 
    97             (        
    98               array 
    99               ( 
    100                 'images_dir' => $_SERVER['DOCUMENT_ROOT'] . '/images', 
    101                 'images_url' => '/images', 
    102                 'images_allow_upload' => true, 
    103                 'images_allow_delete' => true, 
    104                 'images_allow_download' => true, 
    105                 'images_use_hspace_vspace' => false, 
    106                  
    107                 'files_dir' => $_SERVER['DOCUMENT_ROOT'] . '/files', 
    108                 'files_url' => '/files', 
    109                 'files_allow_upload' => true, 
    110                 'max_files_upload_size' => '4M', 
    111               ) 
    112             ) 
    113           ?> 
    114         } 
    115       } 
    116     } 
    117   </script> 
    11892EOF 
    119 echo "xinha-$VER" >local_plugins/VERSION.TXT 
    120 zip -r    local_plugins.zip     local_plugins 
    121 tar -cjvf local_plugins.tar.bz2 local_plugins 
     93echo "xinha-$VER" >xinha-cdn/VERSION.TXT 
     94zip -r    xinha-cdn.zip     xinha-cdn 
     95tar -cjvf xinha-cdn.tar.bz2 xinha-cdn 
    12296 
    12397cd xinha 
Note: See TracChangeset for help on using the changeset viewer.