5,7 → 5,7 |
# vcs |
# Video Contact Sheet *NIX: Generates contact sheets (previews) of videos |
# |
# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2016 Toni Corvera |
# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Toni Corvera |
# |
# This program is free software; you can redistribute it and/or |
# modify it under the terms of the GNU Lesser General Public |
31,11 → 31,8 |
|
declare -r VERSION="1.13.2" |
declare -r RELEASE=0 |
declare -ri PRERELEASE=4 # This version is retrofitted, it was never actually made public |
declare -ri PRERELEASE=3 |
[ "$RELEASE" -eq 1 ] || declare -r SUBVERSION="-pre.${PRERELEASE}" |
# NOTE: This pre-release is a quick modification, it just adds a way of disabling |
# coloured output altogether, by setting TERM to a monochrome terminal type. |
# e.g. $ env TERM=vt100 vcs -Wc |
|
set -e |
|
1822,7 → 1819,7 |
# Is tput available? |
if type -pf tput >/dev/null ; then |
# Is it able to set colours? |
if tput bold && [[ "-1" != "$(tput colors)" ]] && tput setaf 0 && tput sgr0; then |
if tput bold && tput setaf 0 && tput sgr0 ; then |
PREFIX_ERR=$(tput bold; tput setaf 1) |
PREFIX_WARN=$(tput bold; tput setaf 3) |
PREFIX_INF=$(tput bold; tput setaf 2) |
1829,9 → 1826,6 |
PREFIX_DBG=$(tput bold; tput setaf 4) |
SUFFIX_FBACK=$(tput sgr0) |
HAS_COLORS="yes" |
else |
HAS_COLORS="no" |
set_feedback_prefixes |
fi >/dev/null |
fi |
|
4282,7 → 4276,7 |
# Prints the program identification to stderr |
show_vcs_info() { # Won't be printed in quiet modes |
# Don't colourise this |
infplain "Video Contact Sheet *NIX v${VERSION}${SUBVERSION}, (c) 2007-2016 Toni Corvera" |
infplain "Video Contact Sheet *NIX v${VERSION}${SUBVERSION}, (c) 2007-2014 Toni Corvera" |
} |
|
# Prints the list of options to stdout |