diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-02 18:26:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-02 18:26:28 +0300 |
commit | f1855d38361f0c7c76e2bf063ed3243836afd1de (patch) | |
tree | 552aa64e62144d88322fd8aab4f913e4bc3e0ef3 | |
parent | 0a3599e622713e1cc3ffcc47de4f6eba33b9c352 (diff) | |
download | spm-f1855d38361f0c7c76e2bf063ed3243836afd1de.tar.gz spm-f1855d38361f0c7c76e2bf063ed3243836afd1de.tar.bz2 spm-f1855d38361f0c7c76e2bf063ed3243836afd1de.tar.xz spm-f1855d38361f0c7c76e2bf063ed3243836afd1de.zip |
Add support for ACLOCAL_PATH in packages.
New function env_aclocal_path
New variable ENV_ACLOCAL_PATH
-rw-r--r-- | scripts/include/common.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/include/common.sh b/scripts/include/common.sh index 0df1bba..c61111f 100644 --- a/scripts/include/common.sh +++ b/scripts/include/common.sh @@ -78,6 +78,11 @@ function env_path { check_error $? } +function env_aclocal_path { + echo "export ACLOCAL_PATH=${bindir}/$1:\$PATH" >>"${envfile}" + check_error $? +} + function env_lib_library_path { echo "export LD_LIBRARY_PATH=${bindir}/$1:\$LD_LIBRARY_PATH" >>"${envfile}" check_error $? @@ -249,6 +254,7 @@ function package_use { repack_paths "$ENV_LD_LIBRARY_PATH" "LD_LIBRARY_PATH" repack_paths "$ENV_PKG_CONFIG_PATH" "PKG_CONFIG_PATH" repack_paths "$ENV_MANPATH" "MANPATH" + repack_paths "$ENV_ACLOCAL_PATH" "ACLOCAL_PATH" } function common_use_package { |