aboutsummaryrefslogtreecommitdiff
path: root/make_install.sh
diff options
context:
space:
mode:
authorEinhard Leichtfuß <alguien@respiranto.de>2018-12-23 16:02:33 +0100
committerEinhard Leichtfuß <alguien@respiranto.de>2018-12-23 16:02:33 +0100
commitb300f3c047a606024db2098523c8fff70721c716 (patch)
tree2cf7ba3456269f5e770c0f0aa40a16dac1ca2a55 /make_install.sh
parent7e41bec85b1299edd6f7eebb160296e4ec97da81 (diff)
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.
Diffstat (limited to 'make_install.sh')
-rwxr-xr-xmake_install.sh10
1 files changed, 7 insertions, 3 deletions
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 == <base directory>
+#
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"
}