From 2f8ad81265b1e946286f76ecffba4336e463e5da Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sun, 1 Mar 2009 10:09:50 -0600 Subject: [PATCH] replace "~" with "$HOME" in all documentation and comments --- profiles/generate-profiles | 5 ++++- screen | 4 ++-- screen-launcher-install | 2 +- screen-launcher.1 | 2 +- select-screen-profile.1 | 2 +- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/profiles/generate-profiles b/profiles/generate-profiles index 54b86d54..55350136 100755 --- a/profiles/generate-profiles +++ b/profiles/generate-profiles @@ -2,7 +2,10 @@ # This script should be run during in the './debian/rules get-orig-source' # step. -rm -f profiles/debian-* profiles/fedora-* profiles/redhat-* profiles/ubuntu-* +rm -vf profiles/debian-* profiles/fedora-* profiles/redhat-* profiles/ubuntu-* +if [ "$1" = "--clean" ]; then + exit 0 +fi for i in $(ls profiles/logos); do echo "Generating profile: $i-light" diff --git a/screen b/screen index ea16ab28..67b4214c 100755 --- a/screen +++ b/screen @@ -24,13 +24,13 @@ # The following hack should be removed after Jaunty goes GA # (should only affect upgrading Alpha users) # See LP: #335275 -# Collapse ~/.screenrc-* into ~/.screen-profiles/* +# Collapse $HOME/.screenrc-* into $HOME/.screen-profiles/* for i in ec2-cost keybindings profile updates-available windows; do mv -f "$HOME/.screenrc-$i" "$HOME/.screen-profiles/$i" 2>/dev/null done ########################################################################## -# If ~/.screenrc exists but ~/.screen-profiles/profile does not, +# If $HOME/.screenrc exists but $HOME/.screen-profiles/profile does not, # this shows that the user has an existing custom screen configuration, # and thus we will not bother them with a select-screen-profile prompt. if [ -r "$HOME/.screenrc" -a ! -e "$HOME/.screen-profiles/profile" ]; then diff --git a/screen-launcher-install b/screen-launcher-install index ca76382f..37f195af 100755 --- a/screen-launcher-install +++ b/screen-launcher-install @@ -30,7 +30,7 @@ install_screen_launcher() { # Sanitize the environment /usr/share/screen-profiles/screen-launcher-uninstall || true -# Install in ~/.profile unconditionally +# Install in $HOME/.profile unconditionally install_screen_launcher "$HOME/.profile" # Now, install in any shell-specific profiles, if they exist diff --git a/screen-launcher.1 b/screen-launcher.1 index 51fc800d..59f03c29 100644 --- a/screen-launcher.1 +++ b/screen-launcher.1 @@ -5,7 +5,7 @@ screen\-launcher \- Screen Launcher .SH DESCRIPTION \fBscreen\-launcher\fP is a simple application that will launch "screen", reconnecting to an existing detached session (if available). -This script exists for simple insertion and removal from a user's ~/.screenrc file, by the \fBscreen\-profiles\fP utility. +This script exists for simple insertion and removal from a user's $HOME/.screenrc file, by the \fBscreen\-profiles\fP utility. .SH "SEE ALSO" .PD 0 diff --git a/select-screen-profile.1 b/select-screen-profile.1 index e5673de0..74c0d749 100644 --- a/select-screen-profile.1 +++ b/select-screen-profile.1 @@ -5,7 +5,7 @@ select\-screen\-profile \- Screen Profile Selector .SH DESCRIPTION \fBselect\-screen\-profile\fP is an application that lists the available screen profiles on a system and prompts the user to select one. -The selected profile will be symbolically linked into the current user's ~/.screen-profiles/profile, if that file does not yet exist, or is currently a symbolic link. +The selected profile will be symbolically linked into the current user's $HOME/.screen-profiles/profile, if that file does not yet exist, or is currently a symbolic link. .SH "SEE ALSO" .PD 0