Skip to content

Latest commit

Β 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Introduction

This shell script creates a layout for a Lisp poject.

How to use

The script takes the following arguments:

  • -b or -l flags to create a layout for a Lisp library (-l) or an executable (-b)
  • -n [project-name] to provide a project name

Make a library

To create the layout for a Lisp library, whose name is "my-library" and whose API depends on file1.lisp and file2.lisp, execute in shell:

./make-lisp-project.sh -l -n my-library file1 file2

This produces a folder my-library with the following content:

my-library/
β”œβ”€β”€ api.lisp
β”œβ”€β”€ file1.lisp
β”œβ”€β”€ file2.lisp
β”œβ”€β”€ load.lisp
β”œβ”€β”€ my-library.asd
β”œβ”€β”€ packages.lisp
β”œβ”€β”€ README.md
└── tests
    β”œβ”€β”€ integration-tests.lisp
    └── unit-tests.lisp

The file load.lisp contains ASDF command to compile the library.

Make an executable

To create the layout to start working on an executable, whose name is "my-executable" and whose main.lisp depends on file1.lisp and file2.lisp, execute in shell:

./make-lisp-project.sh -b -n my-executable file1 file2

This produces a folder my-library with the following content:

my-executable/
β”œβ”€β”€ cli.lisp
β”œβ”€β”€ file1.lisp
β”œβ”€β”€ file2.lisp
β”œβ”€β”€ load.lisp
β”œβ”€β”€ main.lisp
β”œβ”€β”€ makefile
β”œβ”€β”€ my-executable.asd
β”œβ”€β”€ packages.lisp
β”œβ”€β”€ README.md
└── tests
    β”œβ”€β”€ integration-tests.lisp
    └── unit-tests.lisp

The file load.lisp contains ASDF command to build the executable. Or just use the makefile.

Tested

  • GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
  • SBCL 2.1.9

About

Simple bash script to create a layout for a Lisp project

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages