Skip to content

Commit

Permalink
[Branding] Linux scripts now made from template by cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
lkalif committed Jun 18, 2014
1 parent a7728b8 commit ffd0e6b
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 13 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ qtcreator-build/
/indra/newview/res/viewerRes.rc
/indra/newview/res/viewerRes_bc.rc
/indra/newview/English.lproj/InfoPlist.strings
/indra/newview/linux_tools/handle_secondlifeprotocol.sh
/indra/newview/linux_tools/install.sh
/indra/newview/linux_tools/refresh_desktop_app_entry.sh
/indra/newview/linux_tools/wrapper.sh


15 changes: 15 additions & 0 deletions indra/cmake/BuildVersion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,21 @@ if (LINUX)
${CMAKE_SOURCE_DIR}/newview/linux_tools/wrapper.sh
@ONLY
)
configure_file(
${CMAKE_SOURCE_DIR}/newview/linux_tools/handle_secondlifeprotocol.sh.in
${CMAKE_SOURCE_DIR}/newview/linux_tools/handle_secondlifeprotocol.sh
@ONLY
)
configure_file(
${CMAKE_SOURCE_DIR}/newview/linux_tools/install.sh.in
${CMAKE_SOURCE_DIR}/newview/linux_tools/install.sh
@ONLY
)
configure_file(
${CMAKE_SOURCE_DIR}/newview/linux_tools/refresh_desktop_app_entry.sh.in
${CMAKE_SOURCE_DIR}/newview/linux_tools/refresh_desktop_app_entry.sh
@ONLY
)
endif (LINUX)

# Compose the version.
Expand Down
4 changes: 2 additions & 2 deletions indra/newview/linux_tools/client-readme-voice.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ groups inside Second Life, with an appropriate headset/microphone.
Linux Voice Support is currently EXPERIMENTAL and is known to still
have some compatibility issues.

SINGULARITY MULTI-VOICE
MULTI-VOICE
-=-=-=-=-=-=-=-=-=-=-=-
Singularity multi-voice is an experimental feature that allows you to run multiple
Multi-voice is an experimental feature that allows you to run multiple
SLVoice daemons at the same time, in order to do this, the debug setting VoiceMultiInstance
must be TRUE, this allows multiple instances of the viewer to run concurrently and
each connect to voice.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ fi
RUN_PATH=`dirname "$0" || echo .`
cd "${RUN_PATH}"

exec ./singularity -url \'"${URL}"\'
exec ./@VIEWER_BRANDING_ID@ -url \'"${URL}"\'

12 changes: 6 additions & 6 deletions indra/newview/linux_tools/install.sh → indra/newview/linux_tools/install.sh.in
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Install Singularity Viewer. This script can install the viewer both
# Install @VIEWER_CHANNEL@. This script can install the viewer both
# system-wide and for an individual user.

VT102_STYLE_NORMAL='\E[0m'
Expand Down Expand Up @@ -48,8 +48,8 @@ function warn()
function homedir_install()
{
warn "You are not running as a privileged user, so you will only be able"
warn "to install Singularity Viewer in your home directory. If you"
warn "would like to install Singularity Viewer system-wide, please run"
warn "to install @VIEWER_CHANNEL@ in your home directory. If you"
warn "would like to install @VIEWER_CHANNEL@ system-wide, please run"
warn "this script as the root user, or with the 'sudo' command."
echo

Expand All @@ -58,13 +58,13 @@ function homedir_install()
exit 0
fi

install_to_prefix "$HOME/.singularity-install"
$HOME/.singularity-install/refresh_desktop_app_entry.sh
install_to_prefix "$HOME/.@VIEWER_BRANDING_ID@-install"
$HOME/.@VIEWER_BRANDING_ID@-install/refresh_desktop_app_entry.sh
}

function root_install()
{
local default_prefix="/opt/singularity-install"
local default_prefix="/opt/@VIEWER_BRANDING_ID@-install"

echo -n "Enter the desired installation directory [${default_prefix}]: ";
read
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ function install_desktop_entry()

local desktop_entry="\
[Desktop Entry]\n\
Name=Singularity\n\
Name=@VIEWER_BRANDING_ID@\n\
Comment=Client for Online Virtual Worlds, such as Second Life\n\
Exec=${installation_prefix}/singularity\n\
Icon=${installation_prefix}/singularity_icon.png\n\
Exec=${installation_prefix}/@VIEWER_BRANDING_ID@\n\
Icon=${installation_prefix}/@VIEWER_BRANDING_ID@_icon.png\n\
Terminal=false\n\
Type=Application\n\
Categories=Application;Network;\n\
Expand All @@ -24,7 +24,7 @@ X-Desktop-File-Install-Version=3.0"

echo " - Installing menu entries in ${desktop_entries_dir}"
mkdir -vp "${desktop_entries_dir}"
echo -e $desktop_entry > "${desktop_entries_dir}/singularity-viewer.desktop" || "Failed to install application menu!"
echo -e $desktop_entry > "${desktop_entries_dir}/@VIEWER_BRANDING_ID@-viewer.desktop" || "Failed to install application menu!"
}

if [ "$UID" == "0" ]; then
Expand Down

0 comments on commit ffd0e6b

Please sign in to comment.