summaryrefslogtreecommitdiff
path: root/indra/viewer_components/updater
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2013-01-11 12:24:44 -0500
committerNat Goodspeed <nat@lindenlab.com>2013-01-11 12:24:44 -0500
commit83f625445b87b8c5cb53c1a152f03402c0606dee (patch)
tree71e471cca2522ae6bec4885d9278934a6551aac8 /indra/viewer_components/updater
parent6e9782f79f6d3cac2bfeb72c6cd43b409020c76e (diff)
MAINT-1481: Remove xmenity script and viewer_manifest.py references.
Diffstat (limited to 'indra/viewer_components/updater')
-rwxr-xr-xindra/viewer_components/updater/scripts/linux/xmenity55
1 files changed, 0 insertions, 55 deletions
diff --git a/indra/viewer_components/updater/scripts/linux/xmenity b/indra/viewer_components/updater/scripts/linux/xmenity
deleted file mode 100755
index c0c033904c..0000000000
--- a/indra/viewer_components/updater/scripts/linux/xmenity
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/bash
-
-# @file xmenity
-# @author Nat Goodspeed
-# @date 2013-01-09
-# @brief Provide progress UI for bash scripts (e.g. update_install) using
-# zenity if available, xmessage if not.
-#
-# $LicenseInfo:firstyear=2013&license=viewerlgpl$
-# Copyright (c) 2013, Linden Research, Inc.
-# $/LicenseInfo$
-
-# This script invokes either zenity --progress or, if zenity is unavailable,
-# wraps xmessage in a zenity-like interface. That is its mutant power.
-# Pass $1 as the title for your zenity box. It is ignored by xmessage.
-# Send updates on stdin:
-# A line containing only a decimal integer from 0 - 100 sets that progress.
-# End with 100 to tell zenity to terminate.
-# A line starting with '#' replaces the progress text.
-# All other stdin lines are ignored.
-
-zenpath="$(which zenity)"
-if [ -n "$zenpath" -a -x "$zenpath" ]
-then # if executable zenity is on PATH, run that instead of this.
- exec "$zenpath" --progress --title="$1" --auto-close --width=320 --height=120
-fi
-
-# Arriving here means we don't have zenity available. The remainder of this
-# script is the xmessage wrapper.
-
-# We operate by leaving one background xmessage process running. This is the
-# pid of that process.
-xmpid=""
-
-function clear_message {
- [ -n "$xmpid" ] && kill $xmpid
- xmpid=""
-}
-
-# Cancel any pending xmessage, regardless of how we exit.
-trap 'clear_message' EXIT
-
-while read line
-do # terminate like zenity --progress
- [ "$line" == "100" ] && break
- # ignore everything but replacement text
- nohash="${line#'#'}"
- # if stripping leading hash doesn't change line, it doesn't have one
- [ "$nohash" == "$line" ] && continue
- # clear any previous message
- clear_message
- # put up a new xmessage and capture its pid
- xmessage -buttons OK:2 -center "$nohash" &
- xmpid=$!
-done