mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 19:09:44 +00:00
25 lines
635 B
Bash
Executable File
Vendored
25 lines
635 B
Bash
Executable File
Vendored
#!/usr/bin/env bash
|
|
# author: deadc0de6 (https://github.com/deadc0de6)
|
|
# Copyright (c) 2023, deadc0de6
|
|
|
|
# get current working directory
|
|
cur=$(cd "$(dirname "${0}")" && pwd)
|
|
|
|
# extract version from git latest tag
|
|
#version=$(git describe --tags --abbrev=0)
|
|
# extract version from version.py
|
|
version=$(grep version "${cur}"/../dotdrop/version.py | sed 's/^.*= .\(.*\).$/\1/g')
|
|
|
|
if ! hash txt2man 2>/dev/null; then
|
|
echo "install txt2man"
|
|
exit 1
|
|
fi
|
|
|
|
txt2man \
|
|
-t "dotdrop" \
|
|
-P "dotdrop" \
|
|
-r "dotdrop-${version}" \
|
|
-s 1 \
|
|
-v "Save your dotfiles once, deploy them everywhere" \
|
|
"${cur}/dotdrop.txt2man" > "${cur}/dotdrop.1"
|