Skip to content

Commit

Permalink
Cosmetic Surgery: Preparation for packaging (#13)
Browse files Browse the repository at this point in the history
* Fix double slashes.

I hate to read double slashes :-).

* fixup! Fix double slashes.

* Fix version.

It should match release version. Indeed, package maintainer shouldn't have
to maintain this.

* Update username.

Username has been switched from harisgusic to veracioux.
  • Loading branch information
funilrys authored Dec 3, 2021
1 parent 35acb5b commit 8764bf3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
PREFIX ?= /usr/local
VERSION ?= 0.1.0
VERSION ?= 0.3.0

install:
@# Inject a __TUTERM_PREFIX variable definition into the tuterm script
@# Inject a __TUTERM_VERSION variable definition into the tuterm script
mkdir -p _build
sed -e "0,/__TUTERM_PREFIX=.*/s::__TUTERM_PREFIX='/${PREFIX}':" \
sed -e "0,/__TUTERM_PREFIX=.*/s::__TUTERM_PREFIX='${PREFIX}':" \
-e "0,/__TUTERM_VERSION=.*/s::__TUTERM_VERSION='${VERSION}':" \
tuterm > _build/tuterm
@# Install
mkdir -p "${DESTDIR}/${PREFIX}/bin" \
"${DESTDIR}/${PREFIX}/share/man/man1" \
"${DESTDIR}/${PREFIX}/share/tuterm" \
"${DESTDIR}/${PREFIX}/share/tuterm/scripts"
install -Dm755 _build/tuterm "${DESTDIR}/${PREFIX}/bin/"
install -Dm644 docs/tuterm.1 "${DESTDIR}/${PREFIX}/share/man/man1/"
install -Dm644 config.sh "${DESTDIR}/${PREFIX}/share/tuterm/"
install -Dm755 example.tut "${DESTDIR}/${PREFIX}/share/tuterm/"
mkdir -p "${DESTDIR}${PREFIX}/bin" \
"${DESTDIR}${PREFIX}/share/man/man1" \
"${DESTDIR}${PREFIX}/share/tuterm" \
"${DESTDIR}${PREFIX}/share/tuterm/scripts"
install -Dm755 _build/tuterm "${DESTDIR}${PREFIX}/bin/"
install -Dm644 docs/tuterm.1 "${DESTDIR}${PREFIX}/share/man/man1/"
install -Dm644 config.sh "${DESTDIR}${PREFIX}/share/tuterm/"
install -Dm755 example.tut "${DESTDIR}${PREFIX}/share/tuterm/"

uninstall:
rm -rf \
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,5 @@ Everyone is welcome to contribute.

*A note: Tuterm is a simple program, so most issues or features should be a good choice for a beginner.*

[collection]: https://github.com/HarisGusic/tuterm-collection
[issues]: https://github.com/HarisGusic/tuterm/issues
[collection]: https://github.com/veracioux/tuterm-collection
[issues]: https://github.com/veracioux/tuterm/issues
2 changes: 1 addition & 1 deletion docs/tuterm.1
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ TODO: just placeholders, disregard for now.
.UE

-
.UR https://github.com/harisgusic/tuterm-collection
.UR https://github.com/veracioux/tuterm-collection
\fBtuterm-collection\fR
.UE

Expand Down
2 changes: 1 addition & 1 deletion tuterm
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ __list_scripts() {
echo "Tuterm scripts are usually installed by programs that support them."
echo "You can also have a look this collection of scripts for various programs:"
echo
echo "https://github.com/harisgusic/tuterm-collection"
echo "https://github.com/veracioux/tuterm-collection"
return 1
else
echo "The following tuterm scripts are installed on your system:"
Expand Down

0 comments on commit 8764bf3

Please sign in to comment.