Skip to content

Instantly share code, notes, and snippets.

@mumurik
mumurik / create_package.bat
Created March 1, 2012 05:30
release related script
set _new=xyzzy_new
mkdir %_new%
robocopy /E xyzzy-0.2.2.235\xyzzy %_new%
copy ..\xyzzy\readme_multiframe.txt %_new%\
copy ..\xyzzy\Release\updater.exe %_new%\
copy /Y ..\xyzzy\xyzzycli.exe %_new%\xyzzycli.exe
copy /Y ..\xyzzy\src\r\xyzzy.exe %_new%\xyzzy.exe
call update_lisp.bat %_new%
call byte_compile.bat %_new%
Cscript zip.js %_new% %1.zip
@mumurik
mumurik / byte_compile.bat
Created March 1, 2012 05:31
release related script
@set xyzzypath=%~dp0%xyzzy_for_bytecompile\xyzzy.exe
@set evalarg=(batch-compile \"%1\")
%xyzzypath% -l byte_compile_dir.l -e "%evalarg%"
@mumurik
mumurik / byte_compile_dir.l
Created March 1, 2012 05:32
release related script
(require "glob")
(defvar basedir "your-path-to-your-release-dir")
(defun batch-compile(dirname)
(byte-compile-dir (merge-pathnames "lisp" (merge-pathnames dirname basedir))))
(defun byte-compile-dir(dir)
(interactive "DByte compile files under: ")
(glob-exec (glob-expand dir)
:recursive nil
:file-only t :wild "*.l"
@mumurik
mumurik / update_lisp.bat
Created March 1, 2012 05:34
release related script
robocopy /E ..\xyzzy\lisp %1\lisp
robocopy /E ..\xyzzy\etc %1\etc
@mumurik
mumurik / zip.js
Created March 22, 2012 07:30
release related script
if (WScript.Arguments.Count() != 2) {
WScript.Echo("Usage: Cscript.exe zip.js targetfolder zipfile");
WScript.Quit();
}
var fso = new ActiveXObject("Scripting.FileSystemObject");
var shell = new ActiveXObject("Shell.Application");
var zipfile = WScript.Arguments.Item(1);
var fso = new ActiveXObject("Scripting.FileSystemObject");