Add pt script
The `pt' script is used to add a command-line interface to the `project-template' module. It runs the `pt-create-project-from-template' function, passing along the first and second arguments.
This commit is contained in:
parent
abe302c1b6
commit
8c8fa18857
1 changed files with 9 additions and 0 deletions
9
pt
Executable file
9
pt
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "${#@}" -lt 2 ]; then
|
||||
echo "Usage: $0 <template name> <destination>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
/usr/bin/emacs -Q -batch -l project-template.el -eval \
|
||||
"(pt-create-project-from-template \"$1\" \"$2\")"
|
Loading…
Reference in a new issue