Changeset 1fe9365 in tol


Ignore:
Timestamp:
Nov 5, 2010, 9:00:43 AM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
cdc90de
Parents:
30b75c68
Message:

simplifying and cleaning svn info

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@2648 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/general/system/_system.tol

    r30b75c68 r1fe9365  
    535535//////////////////////////////////////////////////////////////////////////////
    536536{
    537   Real OSCmdWait("svn info \""+path+"\" > svn_info.txt");
    538   Text svn_info.txt = ReadFile("svn_info.txt");
    539   Set lines = Select(Tokenizer(svn_info.txt,"\n"),Real(Text line)
    540   {
    541     TextLength(Compact(line))>0
    542   });
    543   Text svn_info = SetSum(For(1,Card(lines),Text(Real k)
    544   {
    545     Text t = lines[k];
    546     Case(
    547       t=="","",
    548       TextBeginWith(t,"Ruta:"),"",
    549       1==1,Replace(t,"\"","'"))+"\n"
    550   }))
    551 };
     537  If(!OSDirExist(path+"/.svn"),"", {
     538  Real OSCmdWait("svn info \""+path+"\" > "+path+"/.svn/svn_info.txt");
     539  Text svn_info.txt = ReadFile(path+"/.svn/svn_info.txt");
     540  Replace(svn_info.txt,"\"","'")
     541})};
    552542 
    553543//////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.