This shell script creates a layout for a Lisp poject.
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
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.
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.
- GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
- SBCL 2.1.9