Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » U++ Esc Interpreter, Esc Macros and templates » Export active package as zip file (TheIDE macro)
Export active package as zip file (TheIDE macro) [message #60692] Sun, 21 July 2024 16:55
Oblivion is currently offline  Oblivion
Messages: 1209
Registered: August 2007
Senior Contributor
Hi,

A simple and useful macro, if you ever need to zip and export a U++ package.
This works on Linux but can be easily extended to other platforms.
t relies on a regular command line with a defined HOME variable. (Output path can be easily modified on-the-fly by using an input dialog though...)

macro "Export active package as zip file..." {
	ClearConsole();
	name  = ActivePackage();
	cmdline = "cd " + PackageDir(name) + "/.. && zip $HOME/" + name + " --exclude=*.git* --exclude=*.svn* -r " + name;
	if(!Execute("sh -c \"" + cmdline + "\""))
		Echo("Done!");
}


Best regards,
Oblivion


 
Read Message
Previous Topic: New functions for Esc
Next Topic: [BUG: fixed] Esc Input function doesn't actually return an array of elements.
Goto Forum:
  


Current Time: Tue Jun 03 01:58:38 CEST 2025

Total time taken to generate the page: 0.03060 seconds