aboutsummaryrefslogtreecommitdiff
path: root/make_install.sh
diff options
context:
space:
mode:
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"
}