From b300f3c047a606024db2098523c8fff70721c716 Mon Sep 17 00:00:00 2001 From: Einhard Leichtfuß Date: Sun, 23 Dec 2018 16:02:33 +0100 Subject: Use the provided sample.* files Do not longer rely on them being symlinked to the target directories. Also, fix small error in make_install.sh:main() ($1 -> $2). And add some comments. --- make_install.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'make_install.sh') diff --git a/make_install.sh b/make_install.sh index 6a3468d..359989c 100755 --- a/make_install.sh +++ b/make_install.sh @@ -36,7 +36,7 @@ function main cd "${1}/${2}" || exit 1 fi - if [[ "$1" == src ]] + if [[ "$2" == src ]] then ext= else @@ -58,14 +58,18 @@ function main } +# Create the install file. +# +# requires: $PWD == +# function make_install { pkgname=dict-freedict-${lang}${ext} - input ../sample.install + input "${script_dir}/sample.install" replace "%LANG%" "$lang" replace "%SUFFIX%" "$ext" - write ${pkgname}/${pkgname}.install + write "${pkgname}/${pkgname}.install" } -- cgit v1.2.3