Remove dependency on version.sh library file

This commit is contained in:
Eric Torres 2022-10-01 12:38:55 -07:00
parent 7eda5e8c93
commit d598319760
5 changed files with 9 additions and 17 deletions

View File

@ -13,11 +13,6 @@ source=("${pkgname}::git+file:///home/etorres/Projects/file-scripts")
install=$pkgname.install
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}/bash"
bash version.sh --print
}
package() {
cd "${srcdir}/${pkgname}"

View File

@ -11,12 +11,14 @@ for f in "$LIBDIR"/*.sh; do
source "${f}"
done
# Constants
VERSION=2.0.0
DEFAULT_TEMPLATE_DIR="$HOME/Templates"
# Helper functions
function help() {
cat <<HELPMESSAGE
$(basename "$0") $MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION
$(basename "$0") $VERSION
Usage: $(basename "$0") [-h] [-d DIR] [-f] dest

View File

@ -11,13 +11,16 @@ for f in "$LIBDIR"/*.sh; do
source "${f}"
done
# Constants
VERSION=2.0.0
BOOT_DIR='/boot'
ETC_DIR='/etc'
# Helper functions
function help() {
cat <<HELPMESSAGE
$(basename "$0") $MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION
$(basename "$0") $VERSION
Usage: $(basename "$0") [-h|--help] [options] [patterns]

View File

@ -12,6 +12,7 @@ for f in "$LIBDIR"/*.sh; do
done
# ========== Constants ==========
VERSION='2.0.0'
RED=$'\e[1;31m'
GREEN=$'\e[1;32m'
BLUE=$'\e[1;34m'
@ -25,7 +26,7 @@ declare -a typeopts
# ========== Helper functions ==========
function help() {
cat << HELPMESSAGE
$(basename "$0") $MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION
$(basename "$0") $VERSION
Usage: $(basename "$0") [-h] [-d] [-e] [-E ext] [-f] [-F] [-I] [-i] [-l] patterns [patterns ...]

View File

@ -1,9 +0,0 @@
#!/usr/bin/env bash
MAJOR_VERSION=1
MINOR_VERSION=2
PATCH_VERSION=0
if [[ "$1" == '--print' ]]; then
echo "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}"
fi