diff options
author | P. J. McDermott <pj@pehjota.net> | 2017-07-22 18:06:12 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2017-07-22 18:06:12 (EDT) |
commit | 9217f3869f76d6936e77cec0a1a4d5efd1e97727 (patch) | |
tree | 97255d75e43cebc41e7b779b109496e35b9c192e /lib/cmd | |
parent | e0cc4b1883c98145d05a141e06a0392a3181e6e5 (diff) | |
parent | 98725484ac7bb96cd2ac6481c8460ceaa06dc4be (diff) |
Merge branch 'feature/use-autoconf-automake-shpp-and-shld'
Diffstat (limited to 'lib/cmd')
-rw-r--r-- | lib/cmd/copy-suite.sh | 49 | ||||
-rw-r--r-- | lib/cmd/help.sh | 40 | ||||
-rw-r--r-- | lib/cmd/include.sh | 35 | ||||
-rw-r--r-- | lib/cmd/local.mk | 11 | ||||
-rw-r--r-- | lib/cmd/process-incoming.sh | 49 | ||||
-rw-r--r-- | lib/cmd/remove-suite.sh | 41 | ||||
-rw-r--r-- | lib/cmd/remove.sh | 42 | ||||
-rw-r--r-- | lib/cmd/version.sh | 26 |
8 files changed, 0 insertions, 293 deletions
diff --git a/lib/cmd/copy-suite.sh b/lib/cmd/copy-suite.sh deleted file mode 100644 index 987fb45..0000000 --- a/lib/cmd/copy-suite.sh +++ /dev/null @@ -1,49 +0,0 @@ -# pro-archman -# lib/cmd/copy-suite.sh -# "copy-suite" command -# -# Copyright (C) 2013 Patrick "P. J." McDermott -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -use suite - -cmd_copy_suite_main() -{ - local src_suite="${1}" - local dst_suite="${2}" - local src_chan= - local src_dist= - local dst_chan= - local dst_dist= - - init - - src_chan="${src_suite%/*}" - src_dist="${src_suite##*/}" - if [ "x${src_chan}" = "x${src_suite}" ]; then - src_chan="${conf_incoming_channel}" - fi - dst_chan="${dst_suite%/*}" - dst_dist="${dst_suite##*/}" - if [ "x${dst_chan}" = "x${dst_suite}" ]; then - dst_chan="${conf_incoming_channel}" - fi - - copy_suite "${src_chan}" "${src_dist}" "${dst_chan}" "${dst_dist}" - - fini - - return 0 -} diff --git a/lib/cmd/help.sh b/lib/cmd/help.sh deleted file mode 100644 index 8b4cd58..0000000 --- a/lib/cmd/help.sh +++ /dev/null @@ -1,40 +0,0 @@ -# pro-archman -# lib/cmd/help.sh -# "help" command -# -# Copyright (C) 2013 Patrick "P. J." McDermott -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -cmd_help_main() -{ - local cmd= - - if [ ${#} -eq 1 ]; then - cmd="${1}" - if is_cmd "${cmd}"; then - print_cmd_usage "${cmd}" - return 0 - fi - fi - - printf "$(get_msg 'cmd_help_head')\n\n" "${0}" - - printf "$(get_msg 'cmd_help_opts_head')\n" - print_opt_summaries - printf '\n' - - printf "$(get_msg 'cmd_help_summary_head')\n" - print_cmd_summaries -} diff --git a/lib/cmd/include.sh b/lib/cmd/include.sh deleted file mode 100644 index 4d279af..0000000 --- a/lib/cmd/include.sh +++ /dev/null @@ -1,35 +0,0 @@ -# pro-archman -# lib/cmd/include.sh -# "include" command -# -# Copyright (C) 2013 Patrick "P. J." McDermott -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -use include - -cmd_include_main() -{ - local changes= - - init - - for changes in "${@}"; do - include_changes "${changes}" >/dev/null - done - - fini - - return 0 -} diff --git a/lib/cmd/local.mk b/lib/cmd/local.mk deleted file mode 100644 index 5687a3e..0000000 --- a/lib/cmd/local.mk +++ /dev/null @@ -1,11 +0,0 @@ -# pro-archman -# lib/cmd/local.mk - -pkglibcmd_srcs = \ - lib/cmd/help.sh \ - lib/cmd/version.sh \ - lib/cmd/include.sh \ - lib/cmd/process-incoming.sh \ - lib/cmd/remove.sh \ - lib/cmd/copy-suite.sh \ - lib/cmd/remove-suite.sh diff --git a/lib/cmd/process-incoming.sh b/lib/cmd/process-incoming.sh deleted file mode 100644 index 1eb52ae..0000000 --- a/lib/cmd/process-incoming.sh +++ /dev/null @@ -1,49 +0,0 @@ -# pro-archman -# lib/cmd/generate-index.sh -# "generate-index" command -# -# Copyright (C) 2013 Patrick "P. J." McDermott -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -use locale -use output -use include - -cmd_process_incoming_main() -{ - local changes= - local file= - - init - - info "$(get_msg 'cmd_process_incoming_processing')" - - for changes in "${conf_incoming_dir}/"*.changes; do - if [ ! -f "${changes}" ]; then - continue - fi - for file in $(include_changes "${changes}"); do - if [ ! -f "${file}" ]; then - continue - fi - rm -f "${file}" - done - rm -f "${changes}" - done - - fini - - return 0 -} diff --git a/lib/cmd/remove-suite.sh b/lib/cmd/remove-suite.sh deleted file mode 100644 index 5fc24ae..0000000 --- a/lib/cmd/remove-suite.sh +++ /dev/null @@ -1,41 +0,0 @@ -# pro-archman -# lib/cmd/remove-suite.sh -# "remove-suite" command -# -# Copyright (C) 2013 Patrick "P. J." McDermott -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -use suite - -cmd_remove_suite_main() -{ - local suite="${1}" - local chan= - local dist= - - init - - chan="${suite%/*}" - dist="${suite##*/}" - if [ "x${chan}" = "x${suite}" ]; then - chan="${conf_incoming_channel}" - fi - - remove_suite "${chan}" "${dist}" - - fini - - return 0 -} diff --git a/lib/cmd/remove.sh b/lib/cmd/remove.sh deleted file mode 100644 index 30dffa6..0000000 --- a/lib/cmd/remove.sh +++ /dev/null @@ -1,42 +0,0 @@ -# pro-archman -# lib/cmd/remove.sh -# "remove" command -# -# Copyright (C) 2013 Patrick "P. J." McDermott -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -use remove - -cmd_remove_main() -{ - local suite="${1}" - local source="${2}" - local chan= - local dist= - - init - - chan="${suite%/*}" - dist="${suite##*/}" - if [ "x${chan}" = "x${suite}" ]; then - chan="${conf_incoming_channel}" - fi - - remove_source_from_suite "${chan}" "${dist}" "${source}" - - fini - - return 0 -} diff --git a/lib/cmd/version.sh b/lib/cmd/version.sh deleted file mode 100644 index 6608107..0000000 --- a/lib/cmd/version.sh +++ /dev/null @@ -1,26 +0,0 @@ -# pro-archman -# lib/cmd/version.sh -# "version" command -# -# Copyright (C) 2013 Patrick "P. J." McDermott -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -cmd_version_main() -{ - printf '%s %s\n' "${PACKAGE_NAME}" "${PACKAGE_VERSION}" - - printf "$(get_msg 'cmd_version_copyright')\n" \ - '2013' 'Patrick "P. J." McDermott' -} |