diff options
author | Einhard Leichtfuß <alguien@respiranto.de> | 2018-03-29 02:21:27 +0200 |
---|---|---|
committer | Einhard Leichtfuß <alguien@respiranto.de> | 2018-03-29 02:21:27 +0200 |
commit | 2a8e89e412a0cb344c62aee455d522cd983be1d7 (patch) | |
tree | 5083bf1a7a7e328620bdee408f964d20a0d6769d /src/make_install.sh |
Upload tools for the source (non-vcs) versions
Diffstat (limited to 'src/make_install.sh')
-rwxr-xr-x | src/make_install.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/make_install.sh b/src/make_install.sh new file mode 100755 index 0000000..a24837f --- /dev/null +++ b/src/make_install.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ "$#" -lt 1 ] +then + echo "Usage: $0 xy-zw [base_dir]" >&2 + exit 1 +elif [ "$#" -gt 1 ] +then + cd "$2" || exit 1 +fi + +lang=$1 +pkgname=dict-freedict-${lang} + +sed "s/%LANG%/${lang}/g" sample.install > ${pkgname}/${pkgname}.install |