From e92e8a5e05a401cd237f34894a1aaa8c318a1c49 Mon Sep 17 00:00:00 2001 From: sloum Date: Wed, 29 Nov 2023 12:28:04 -0800 Subject: [PATCH] Updates man page and makefile --- Makefile | 10 +++++++++- felise.1 | 8 ++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 7c3136c..9871ee7 100644 --- a/Makefile +++ b/Makefile @@ -15,11 +15,19 @@ build: .PHONY: install install: install-bin clean -.PHONY: install-bin +.PHONY: install-bin install-man install-bin: install -d ${DESTDIR}${BINDIR} install -m 0755 ./${BINARY} ${DESTDIR}${BINDIR} +.PHONY: install-man +install-man: bombadillo.1 + gzip -c ./${BINARY}.1 > ./${BINARY}.1.gz + install -d ${DESTDIR}${MAN1DIR} + install -m 0644 ./${BINARY}.1.gz ${DESTDIR}${MAN1DIR} + + .PHONY: clean clean: ${GOCMD} clean + rm -rf ${BINARY}.1.gz diff --git a/felise.1 b/felise.1 index 758c922..776fc2d 100644 --- a/felise.1 +++ b/felise.1 @@ -13,6 +13,8 @@ felise - programming language and interpreter The options, see below, passed to the interpreter are executed followed by the felise program in the given script file. The args passed to the script are available as a list of strings held in the variable \fIsys-args\fP. .TP Interactive mode is accessed when no file is passed to the interpreter. In this mode \fBfelise\fP prompts the user, reads lines from stdin, and executes them as they are read. If a line ends in \\ a secondary prompt is displayed and lines are read until a line does not end in \\. +.TP +The repl supports GNU readline-style key commands (up/down to move between previous entries, ^a to move to the beginning of the line, ^e to move to the end, etc). .SH OPTIONS .TP .B @@ -27,9 +29,7 @@ Prints the version number and exits. \fB-debug\fP Turns on debug mode, enabling interpreter warnings .SH FILES & SYSTEM VARS -\fBfelise\fP source code files, by convention, have the file extension \fI.fe\fP. -.TP -REPL session history is persistent in \fBfelise\fP. The history file is located one directory up from the \fBslope\fP module directory (whatever that is set to) and named \fIslope-repl.history\fP, for example: \fI$SLOPE_MOD_PATH/../slope-repl.history\fP (using a fallback path for \fI$SLOPE_MOD_PATH\fP if needed. +\fBfelise\fP sourc code files, by convention, have the file extension \fI.fe\fP. .SH BUGS There are bugs. Have fun! .SH LINKS @@ -37,7 +37,7 @@ There are bugs. Have fun! .TP .B Source Code Repository -https://git.rawtext.club/sloum/felise +https://tildegit.org/sloum/felise .SH COPYRIGHT Copyright (C) 2023 Brian Evans .TP