fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [17268] refactoring


From: sigurdne
Subject: [Fmsystem-commits] [17268] refactoring
Date: Thu, 2 Nov 2017 14:41:32 -0400 (EDT)

Revision: 17268
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17268
Author:   sigurdne
Date:     2017-11-02 14:41:32 -0400 (Thu, 02 Nov 2017)
Log Message:
-----------
refactoring

Added Paths:
-----------
    thirdparty/PE_custom/NLSH/controller/
    thirdparty/PE_custom/NLSH/controller/setup/
    thirdparty/PE_custom/NLSH/controller/setup/Nordlandssykehuset_HF/
    
thirdparty/PE_custom/NLSH/controller/setup/Nordlandssykehuset_HF/phpgw_no.lang
    thirdparty/PE_custom/NLSH/rental/setup/
    thirdparty/PE_custom/NLSH/rental/setup/Nordlandssykehuset_HF/
    thirdparty/PE_custom/NLSH/rental/setup/Nordlandssykehuset_HF/phpgw_no.lang
    thirdparty/PE_custom/NLSH/svn_full_checkout.php

Added: 
thirdparty/PE_custom/NLSH/controller/setup/Nordlandssykehuset_HF/phpgw_no.lang
===================================================================
--- 
thirdparty/PE_custom/NLSH/controller/setup/Nordlandssykehuset_HF/phpgw_no.lang  
                            (rev 0)
+++ 
thirdparty/PE_custom/NLSH/controller/setup/Nordlandssykehuset_HF/phpgw_no.lang  
    2017-11-02 18:41:32 UTC (rev 17268)
@@ -0,0 +1 @@
+add case       controller      no      Start kontroll
\ No newline at end of file

Added: 
thirdparty/PE_custom/NLSH/rental/setup/Nordlandssykehuset_HF/phpgw_no.lang
===================================================================
--- thirdparty/PE_custom/NLSH/rental/setup/Nordlandssykehuset_HF/phpgw_no.lang  
                        (rev 0)
+++ thirdparty/PE_custom/NLSH/rental/setup/Nordlandssykehuset_HF/phpgw_no.lang  
2017-11-02 18:41:32 UTC (rev 17268)
@@ -0,0 +1,4 @@
+section        rental  no      Bruksenhet
+contract_type_eksternleie_feste        rental  no      Trekk i lønn
+contract_type_eksternleie_leilighet    rental  no      Faktura
+contract_type_eksternleie_annen        rental  no      Avdeling/Ansvarssted
\ No newline at end of file

Copied: thirdparty/PE_custom/NLSH/svn_full_checkout.php (from rev 17264, 
thirdparty/PE_custom/BK_EBE/svn_full_checkout.php)
===================================================================
--- thirdparty/PE_custom/NLSH/svn_full_checkout.php                             
(rev 0)
+++ thirdparty/PE_custom/NLSH/svn_full_checkout.php     2017-11-02 18:41:32 UTC 
(rev 17268)
@@ -0,0 +1,201 @@
+#!/usr/bin/php
+<?php
+
+       /**
+       * Portico Estate
+       *
+       * @author Sigurd Nes <address@hidden>
+       * @copyright Copyright (C) 2017 Free Software Foundation, Inc. 
http://www.fsf.org/
+       * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License
+       * @package Portico
+       * @subpackage development
+       * @version $Id: svn_full_checkout.php 4237 2009-11-27 23:17:21Z sigurd $
+       */
+
+       //exit; //remove this line to make the script work
+
+       // 
****************************************************************************
+       // Config section
+       // 
****************************************************************************
+
+        //Example: /usr/bin/php -q svn_full_checkout.php user=<username>
+
+       /**
+       * Repository where you are checking out the code.  NO trailing / - 
example: 'svn.savannah.nongnu.org/fmsystem'
+       */
+
+       $repository = 'svn.savannah.nongnu.org/fmsystem';
+
+       /**
+       * What do you want to do? valid actions are 'co' for standard checkout 
or 'export' for no svn informations
+       */
+
+       $action = 'co';
+//     $action = 'export';
+       $revision =  '';
+
+       /**
+       * Directory that you want the portico directory to go in.  NO trailing /
+       */
+
+       $co_dir = '/srv/www/default';
+       $base_dir = 'htdocs';
+
+       /**
+       * Only needed if you have developers cvs access - leave empty for 
anonymous
+       */
+
+       $svn_login = '';
+       $_svn_login = isset($_SERVER['argv'][1]) ? explode('=', 
$_SERVER['argv'][1]) : array();
+       if($_svn_login)
+       {
+               $svn_login = $_svn_login[1];
+       }
+
+       /**
+       * What release do you intend to check out? - leave empty for trunk - 
example: 'Version-2_0-branch'
+       */
+
+       $release_info = 'Version-2_0-branch';
+
+       /**
+       * Modules you want to checkout
+       */
+
+       /**
+       * Base
+       */
+       $co_modules = array();
+       $co_modules[] = array('admin', $revision);
+       $co_modules[] = array('doc', $revision);
+       $co_modules[] = array('manual', $revision);
+       $co_modules[] = array('phpgwapi', $revision);
+       $co_modules[] = array('preferences', $revision);
+       $co_modules[] = array('setup', $revision);
+       $co_modules[] = array('xmlrpc', $revision);
+       $co_modules[] = array('soap', $revision);
+       $co_modules[] = array('registration', $revision);
+       $co_modules[] = array('addressbook', $revision);
+
+       /**
+       * FM
+       */
+       $co_modules[] = array('mobilefrontend', $revision);
+       $co_modules[] = array('controller', $revision);
+//     $co_modules[] = array('hrm', $revision);
+       $co_modules[] = array('property', $revision);
+       $co_modules[] = array('sms', $revision);
+       $co_modules[] = array('bim', $revision);
+
+
+       /*
+        * Booking
+        */
+//     $co_modules[] = array('booking', $revision);
+//     $co_modules[] = array('bookingfrontend', $revision);
+//     $co_modules[] = array('activitycalendar', $revision);
+//     $co_modules[] = array('activitycalendarfrontend', $revision);
+
+
+       /*
+        * rental
+        */
+       $co_modules[] = array('rental', $revision);
+//     $co_modules[] = array('frontend', $revision);
+
+       /**
+       * Some other stuff
+       */
+       $co_modules[] = array('catch', $revision);
+//     $co_modules[] = array('logistic', $revision);
+//     $co_modules[] = array('helpdesk', $revision);
+//     $co_modules[] = array('eventplanner', $revision);
+//     $co_modules[] = array('eventplannerfrontend', $revision);
+
+
+       $pe_custom = array();
+       $pe_custom['BK_EBE'] = array
+               (
+                       array('catch', ''),
+                       array('property', ''),
+                       array('rental', '')
+               );
+
+       // 
****************************************************************************
+       // End config section
+       // 
****************************************************************************
+
+       /**
+       * If you do not have developer access to cvs, set to True
+       */
+
+       $base_dir = !empty($base_dir) ? $base_dir : 'portico';
+
+       $cvs_anonymous = false;
+       if(!$svn_login)
+       {
+               $cvs_anonymous = true;  
+       }
+
+       if ($release_info)
+       {
+               $release = "/{$release_info}";
+               $branch = 'branches';
+       }
+       else
+       {
+               $release = '';
+               $branch = 'trunk';
+       }
+
+       $_revision = $revision ? "-r $revision" : '';
+
+       chdir($co_dir);
+
+       echo "$action {$_revision} {$repository}/{$branch}{$release} to 
{$co_dir}\n";
+
+       if ($cvs_anonymous)
+       {
+               system("svn {$action} {$_revision} 
svn://{$repository}/{$branch}{$release} $base_dir --non-recursive");
+       }
+       else
+       {
+               system("svn {$action} {$_revision} 
svn+ssh://address@hidden/{$branch}{$release} $base_dir --non-recursive");
+       }
+
+       chdir($co_dir . "/{$base_dir}");
+
+       foreach($co_modules as $_module)
+       {
+               $module = $_module[0];
+               $_revision = !empty($_module[1]) ? "-r {$_module[1]}" : '';
+               echo "$action {$_revision} 
{$repository}/{$branch}{$release}/{$module} to {$co_dir}/$base_dir\n";
+               if ($cvs_anonymous)
+               {
+                       system("svn {$action} {$_revision} 
svn://{$repository}/{$branch}{$release}/{$module}");
+               }
+               else
+               {
+                       system("svn {$action} {$_revision} 
svn+ssh://address@hidden/{$branch}$release/{$module}");
+               }
+       }
+
+       foreach($pe_custom as $section => $modules)
+       {
+               foreach ($modules as $_module)
+               {
+                       $module = $_module[0];
+                       $_revision = !empty($_module[1]) ? "-r {$_module[1]}" : 
'';
+
+                       echo "export {$_revision} 
{$repository}/thirdparty/PE_custom/{$section}/{$module} to 
{$co_dir}/$base_dir\n";
+
+                       if ($cvs_anonymous)
+                       {
+                               system("svn export {$_revision} 
svn://{$repository}/thirdparty/PE_custom/{$section}/{$module} --force");
+                       }
+                       else
+                       {
+                               system("svn export {$_revision} 
svn+ssh://address@hidden/thirdparty/PE_custom/{$section}/{$module} --force");
+                       }
+               }
+       }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]