diff options
author | Einhard Leichtfuß <alguien@respiranto.de> | 2022-04-29 14:58:55 +0200 |
---|---|---|
committer | Einhard Leichtfuß <alguien@respiranto.de> | 2022-04-29 14:58:55 +0200 |
commit | 915faab9c074a0a30b8321c3836d0b35f475e94d (patch) | |
tree | 522b4109f2d43ff06db001b329ec1e09884cf6c8 /make_install.sh | |
parent | 90a0069d9bb72bf3caf59e2411a144f9e3afd2d3 (diff) |
Use proper .bash suffix
Diffstat (limited to 'make_install.sh')
-rwxr-xr-x | make_install.sh | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/make_install.sh b/make_install.sh deleted file mode 100755 index 579586a..0000000 --- a/make_install.sh +++ /dev/null @@ -1,77 +0,0 @@ -#!/usr/bin/env bash -# -# make_install.sh - script to create the .install files -# -# Copyright 2018 Einhard Leichtfuß -# -# This file is part of aur-fd-scripts -# -# aur-fd-scripts is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published -# by the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# aur-fd-scripts 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 Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with aur-fd-scripts. If not, see <https://www.gnu.org/licenses/>. -# - -script_path="$(realpath "$0")" -script_dir="${script_path%/*}" -. "${script_dir}/basic.sh" || exit 1 - - -function main -{ - if [ "$#" -lt 2 ] - then - echo "Usage: $0 <base_dir> <type> (<xy>-<zw>|-a)" >&2 - exit 1 - elif [ "$#" -gt 2 ] - then - cd "${1}/${2}" || exit 1 - fi - - if [[ "$2" == src ]] - then - ext= - else - ext="-${2}" - fi - - init - - if [[ "$3" == "-a" ]] - then - for lang in ${langs[@]} - do - make_install - done - else - lang=$3 - make_install - fi -} - - -# Create the install file. -# -# requires: $lang, $ext to be set; -# $PWD == <base directory>/<type> -# -function make_install -{ - pkgname=dict-freedict-${lang}${ext} - - input "${script_dir}/sample.install" - replace "%LANG%" "$lang" - replace "%SUFFIX%" "$ext" - write "${lang}/${pkgname}.install" -} - - -main "$@" |