Remove dependency on version.sh library file
This commit is contained in:
parent
7eda5e8c93
commit
d598319760
5
PKGBUILD
5
PKGBUILD
@ -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}"
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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]
|
||||
|
||||
|
@ -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 ...]
|
||||
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user