Changeset 61b922e in tol
- Timestamp:
- Dec 27, 2011, 11:54:29 AM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 1ae5ad9
- Parents:
- d7ed887
- File:
-
- 1 edited
-
tol/stdlib/general/TolPackage/client.tol (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/general/TolPackage/client.tol
rd7ed887 r61b922e 215 215 Real _trace("LocalInstallPackage", "End", 1); 216 216 FileExist(_.localRoot+pkg.name+"/"+pkg.name+".oza") 217 }; 218 219 ////////////////////////////////////////////////////////////////////////////// 220 Text _.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"; 223 Real 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) 217 241 }; 218 242
Note: See TracChangeset
for help on using the changeset viewer.
