Skip to content

Commit

Permalink
Enable selection of proparitary license (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamueluth authored Feb 21, 2024
1 parent 29495f6 commit 3222040
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/_RosTeamWs_Defines.bash
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ let_user_select_license() {
local license_user_input_option="user input"
local licence_team_option="Current team license standard: ['$TEAM_LICENSE']"
local supported_licenses=""
licence_proprietary="Proprietary License - Stogl Robotics"
local license=""

if [[ $ros_version == 1 ]]; then
Expand All @@ -383,7 +384,7 @@ let_user_select_license() {
supported_licenses=$(ros2 pkg create dummy --license "?")
supported_licenses=${supported_licenses#"Supported licenses:"}
fi
local license_options=("$license_user_input_option" "$licence_team_option")
license_options=("$license_user_input_option" "$licence_team_option" "$licence_proprietary")
license_options+=($supported_licenses)

echo ""
Expand All @@ -398,6 +399,13 @@ let_user_select_license() {
license="$TEAM_LICENSE"
break
;;
"$licence_proprietary")
read -p "Enter name of license (e.g. 'Propriatery License'): " NAME_OF_LICENSE
YEAR=$(date +'%Y')
license=$(<"${LICENSE_TEMPLATES}/proprietary_company_header.txt")
license=$(echo "${license}" | sed -e "s/\\\$YEAR\\\$/${YEAR}/g; s/\\\$NAME_ON_LICENSE\\\$/${NAME_OF_LICENSE}/g")
break
;;
*)
license="$licence_option"
break
Expand Down

0 comments on commit 3222040

Please sign in to comment.