diff options
| -rw-r--r-- | Makefile | 8 | ||||
| -rw-r--r-- | st.1 | 21 |
2 files changed, 28 insertions, 1 deletions
| @@ -34,7 +34,7 @@ clean: | |||
| 34 | dist: clean | 34 | dist: clean |
| 35 | @echo creating dist tarball | 35 | @echo creating dist tarball |
| 36 | @mkdir -p st-${VERSION} | 36 | @mkdir -p st-${VERSION} |
| 37 | @cp -R LICENSE Makefile README config.mk config.h st.info ${SRC} st-${VERSION} | 37 | @cp -R LICENSE Makefile README config.mk config.def.h st.info st.1 ${SRC} st-${VERSION} |
| 38 | @tar -cf st-${VERSION}.tar st-${VERSION} | 38 | @tar -cf st-${VERSION}.tar st-${VERSION} |
| 39 | @gzip st-${VERSION}.tar | 39 | @gzip st-${VERSION}.tar |
| 40 | @rm -rf st-${VERSION} | 40 | @rm -rf st-${VERSION} |
| @@ -44,10 +44,16 @@ install: all | |||
| 44 | @mkdir -p ${DESTDIR}${PREFIX}/bin | 44 | @mkdir -p ${DESTDIR}${PREFIX}/bin |
| 45 | @cp -f st ${DESTDIR}${PREFIX}/bin | 45 | @cp -f st ${DESTDIR}${PREFIX}/bin |
| 46 | @chmod 755 ${DESTDIR}${PREFIX}/bin/st | 46 | @chmod 755 ${DESTDIR}${PREFIX}/bin/st |
| 47 | @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 | ||
| 48 | @mkdir -p ${DESTDIR}${MANPREFIX}/man1 | ||
| 49 | @sed "s/VERSION/${VERSION}/g" < st.1 > ${DESTDIR}${MANPREFIX}/man1/st.1 | ||
| 50 | @chmod 644 ${DESTDIR}${MANPREFIX}/man1/st.1 | ||
| 47 | @tic -s st.info | 51 | @tic -s st.info |
| 48 | 52 | ||
| 49 | uninstall: | 53 | uninstall: |
| 50 | @echo removing executable file from ${DESTDIR}${PREFIX}/bin | 54 | @echo removing executable file from ${DESTDIR}${PREFIX}/bin |
| 51 | @rm -f ${DESTDIR}${PREFIX}/bin/st | 55 | @rm -f ${DESTDIR}${PREFIX}/bin/st |
| 56 | @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 | ||
| 57 | @rm -f ${DESTDIR}${MANPREFIX}/man1/sic.1 | ||
| 52 | 58 | ||
| 53 | .PHONY: all options clean dist install uninstall | 59 | .PHONY: all options clean dist install uninstall |
| @@ -0,0 +1,21 @@ | |||
| 1 | .TH ST 1 st-VERSION | ||
| 2 | .SH NAME | ||
| 3 | st \- simple terminal | ||
| 4 | .SH SYNOPSIS | ||
| 5 | .B st | ||
| 6 | .RB [ \-e " <cmd>"] | ||
| 7 | .RB [ \-t " <title>"] | ||
| 8 | .RB [ \-v ] | ||
| 9 | .SH DESCRIPTION | ||
| 10 | .B st | ||
| 11 | is a simple terminal emulator. | ||
| 12 | .SH OPTIONS | ||
| 13 | .TP | ||
| 14 | .B \-e <cmd> | ||
| 15 | Execute cmd instead of the shell | ||
| 16 | .TP | ||
| 17 | .B \-t <title> | ||
| 18 | Overrides the default title (st) | ||
| 19 | .TP | ||
| 20 | .BI \-v | ||
| 21 | Prints version information to standard output, then exits. | ||
