Skip to content

Commit

Permalink
Allow optional install_root in package config
Browse files Browse the repository at this point in the history
The shared framework packages will want to install to the same root
directory as the "dotnet" package itself. Augment the package_tool
script to look for a json key named `install_root` and use that if
specificed, falling back to `/usr/share/$PACKAGE_NAME` when it is not
present.
  • Loading branch information
ellismg committed Mar 10, 2016
1 parent 5cf35e4 commit 9004e20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/DebianPackageTool/package_tool
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ parse_config_and_set_env_vars(){
DOCS_JSON_PATH="$INPUT_DIR/docs.json"

PACKAGE_SOURCE_DIR="${OUTPUT_DIR}/${PACKAGE_NAME}-${PACKAGE_VERSION}"
INSTALL_ROOT="/usr/share/${PACKAGE_NAME}"

if ! INSTALL_ROOT="$($extract_base_cmd $CONFIG "install_root")"; then
INSTALL_ROOT="/usr/share/$PACKAGE_NAME"
fi

DEBIAN_DIR="${PACKAGE_SOURCE_DIR}/debian"
DOCS_DIR="${PACKAGE_SOURCE_DIR}/docs"
Expand Down

0 comments on commit 9004e20

Please sign in to comment.