|
|
| version 1.2, 2025/04/27 16:27:49 | version 1.4, 2025/04/27 18:53:36 |
|---|---|
| Line 7 | Line 7 |
| # Copyright (C) 2025 Serena Willis | # Copyright (C) 2025 Serena Willis |
| # | # |
| # $Log$ | # $Log$ |
| # Revision 1.4 2025/04/27 18:53:36 snw | |
| # Add pl man page | |
| # | |
| # Revision 1.3 2025/04/27 16:29:20 snw | |
| # Fix SPDX license identifiers for REUSE | |
| # | |
| # Revision 1.2 2025/04/27 16:27:49 snw | # Revision 1.2 2025/04/27 16:27:49 snw |
| # Add CVS keywords | # Add CVS keywords |
| # | # |
| # | # |
| # SPDX-FileCopyrightText: (C) 2025 Serena Willis | # SPDX-FileCopyrightText: (C) 2025 Serena Willis |
| # | # SPDX-License-Identifier: AGPL-3.0-or-later |
| # SPDX-License-Identifier: AGPL-3.0 | |
| BLACK=$(tput setaf 0) | BLACK=$(tput setaf 0) |
| RED=$(tput setaf 1) | RED=$(tput setaf 1) |
| Line 31 BLINK=$(tput blink) | Line 36 BLINK=$(tput blink) |
| REVERSE=$(tput smso) | REVERSE=$(tput smso) |
| UNDERLINE=$(tput smul) | UNDERLINE=$(tput smul) |
| BASEDIR="/var/nas/media/music" | BASEDIR="" |
| CHOSEN="" | CHOSEN="" |
| REPL="" | REPL="" |
| SHUFFLE=0 | SHUFFLE=0 |
| REPEAT=0 | REPEAT=0 |
| [[ -f /etc/default/pl ]] && . /etc/default/pl | |
| [[ -f ${HOME}/.plrc ]] && . ${HOME}/.plrc | |
| [[ -f ${HOME}/.config/plm/defaults ]] && . ${HOME}/.config/plm/defaults | |
| function usage { | function usage { |
| echo "usage:" | echo "usage:" |
| echo " pl [[-c|--check]|[-m|--merge]] -i|--input=<playlist1,playlist2,...,playlistN> [[-o|--output]=<output-playlist>]" | echo "pl [OPTIONS...] --check|--repair|--play|--sync|--merge|--help --input=[playlist1,...] [--output=playlist]" |
| exit 1 | exit 1 |
| } | } |
| Line 189 do | Line 198 do |
| esac | esac |
| done | done |
| if [[ "${BASEDIR}" == "" ]] | |
| then | |
| echo "pl: must supply a configuration in /etc/default/pl, $HOME/.plrc, $HOME/.config/pl/defaults, define the \$PL_BASEDIR environment variable, or specify the --basedir option" | |
| exit 1 | |
| fi | |
| BASEDIRLEN=$(echo ${BASEDIR} | wc -c) | BASEDIRLEN=$(echo ${BASEDIR} | wc -c) |
| if [[ ${ACTION} == "" ]] | if [[ ${ACTION} == "" ]] |