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
Messages: 1214 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
Github page: https://github.com/ismail-yilmaz
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
|
|
|
Goto Forum:
Current Time: Sat Jul 12 06:54:00 CEST 2025
Total time taken to generate the page: 0.12080 seconds
|