Changeset 85

Show
Ignore:
Timestamp:
02/13/06 17:22:49 (3 years ago)
Author:
laurentj
Message:

travail sur le build

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/fld/jelix-lib.fld

    r84 r85  
    55  CHANGELOG 
    66  CREDITS 
    7  init.php 
     7* init.php 
    88  INSTALL 
    99  LICENCE 
  • trunk/build/mkdist.php

    r84 r85  
    2727 
    2828} 
     29/*$env = $_ENV; 
     30$options = array('verbose'=>false); 
     31$arrargv = $_SERVER['argv']; 
     32foreach($arrargv as $argv){ 
    2933 
     34  if($argv{0} == '-'){ 
     35    $sw = substr(array_shift($_SERVER['argv']),1); 
     36    if($sw{0} =='D'){ 
     37       
     38    }else{ 
     39      $options['verbose'] = (strpos('v', $sw) !== false); 
     40    }     
     41  }else{ 
     42    break; 
     43  } 
     44}*/ 
    3045list($ficlist, $sourcedir, $distdir) = $_SERVER['argv']; 
    3146 
  • trunk/lib/jelix/init.php

    r51 r85  
    1111*/ 
    1212 
    13 define ('JELIX_VERSION', '0.20060125'); 
     13#expand define ('JELIX_VERSION', '__LIB_VERSION__'); 
    1414define ('JELIX_NAMESPACE_BASE' , 'http://jelix.org/ns/'); 
    1515 
  • trunk/lib/jelix/VERSION

    r51 r85  
    1 Framework PHP Jelix version 0.20060125  (unstable) 
     1SVN 
  • trunk/Makefile

    r84 r85  
    11SHELL=/bin/sh 
    22PHP=/usr/bin/php 
    3 VERSION=SVN 
    43 
     4ifndef LIB_VERSION 
     5LIB_VERSION = $(shell cat lib/jelix/VERSION) 
     6endif 
     7 
     8ifeq ($(LIB_VERSION),SVN) 
     9SVN_REVISION = $(shell svn info | grep "Revision" | cut -d " " -f 2) 
     10LIB_VERSION=SVN-$(SVN_REVISION) 
     11endif 
     12 
     13ifndef DIST 
    514DIST=_dist 
     15endif 
    616 
    7 LIBPATH="$(DIST)/jelix-lib-$(VERSION)" 
     17LIBPATH="$(DIST)/jelix-$(LIB_VERSION)" 
    818 
    919 
    1020 
    1121default: 
    12         @echo "make all
     22        @echo "target:  jelix-lib
    1323 
    1424jelix-lib: common 
    1525        if [ ! -d "$(LIBPATH)" ] ; then mkdir $(LIBPATH) ; else rm -rf $(LIBPATH)/* ; fi 
    16         $(PHP) build/mkdist.php build/fld/jelix-lib.fld . $(LIBPATH) 
     26        export LIB_VERSION=$(LIB_VERSION) \ 
     27        && $(PHP) build/mkdist.php build/fld/jelix-lib.fld . $(LIBPATH) \ 
     28        && $(PHP) build/mkdist.php build/fld/jelix-dev.fld . $(LIBPATH) \ 
     29        && echo "$(LIB_VERSION)" > "$(LIBPATH)/lib/jelix/VERSION" 
     30 
     31 
     32 
    1733 
    1834common: 
    1935        if [ ! -d "$(DIST)" ] ; then mkdir $(DIST) ; fi 
     36         
    2037 
Download in other formats: Unified Diff Zip Archive