Changeset 61b922e in tol


Ignore:
Timestamp:
Dec 27, 2011, 11:54:29 AM (15 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
1ae5ad9
Parents:
d7ed887
Message:

Fixes #1378

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/general/TolPackage/client.tol

    rd7ed887 r61b922e  
    215215  Real _trace("LocalInstallPackage", "End", 1);
    216216  FileExist(_.localRoot+pkg.name+"/"+pkg.name+".oza")
     217};
     218
     219//////////////////////////////////////////////////////////////////////////////
     220Text _.autodoc.member.LocalExportPackage =
     221"Exports a locally installed package to a zip file.\n"
     222"This is usefull to move packages from one machine to other\n";
     223Real LocalExportPackage(Text pkg.ver, Text dir.dest)
     224//////////////////////////////////////////////////////////////////////////////
     225{
     226  Text dir.loc = ReplaceSlash(_.localRoot);
     227  Text pkg.loc = dir.loc+pkg.ver;
     228  Text zip.loc = pkg.loc+".zip";
     229  Text zip.dest = dir.dest+pkg.ver+".zip";
     230
     231  //Ensures that local.oza is locally created
     232  Set LocalInfo(pkg.ver);
     233
     234  //Compacts the package as a ZIP file
     235  Real PackArchive::PackFull("ZipArchive", pkg.loc, False);
     236
     237  //Moves the ZIP file to destination directory
     238  Real OSFilMove(zip.loc, zip.dest);
     239
     240  FileExist(zip.dest)
    217241};
    218242
Note: See TracChangeset for help on using the changeset viewer.