Skip to content

Common lisp template for building standalone executables

Notifications You must be signed in to change notification settings

ryloric/cl-exe-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cl-Exe-Template

Common lisp template project to build standalone executables.

Often, I find myself writing scripts for people who just want to run them without any additional fluff. This gets things started quickly and saves a little time.

Usage

Use it with just.

Put the following in a file cl.just, somewhere you can use it with just, usually at $HOME/.just/cl.just

@new name:
  git clone https://github.com/ryloric/cl-exe-template.git {{name}}
  cd {{name}} && rm -rf .git && mv cl-exe-template.asd {{name}}.asd && find . -type f -exec sed -i 's/cl-exe-template/{{name}}/gI' {} + && git init

Add the following alias somewhere where your shell can pick it up. Change cl.just's location if needed.

alias jcl='just --justfile ~/.just/cl.just --working-directory .'

Reload your shell's init file. For zsh..

$ source ~/.zshrc

You can create a new project with

$ jcl new <project-name>

To build an exe, you can do

$ just make-exe

This builds <project-name.exe> with sbcl's core compression enabled. This can be distributed and run easily.

About

Common lisp template for building standalone executables

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published