homeshick/suse-packaging.patch
Olav Reinert 97d68041bf Accepting request 1087294 from home:oreinert:branches:utilities
- Upgrade to version 2.0.1:
  * Improvements to testing (@oreinert)
  * Test up to and including bash v5.2.9
  * Improvements to cd and check subcommands (@me-and)
  * Improvement to cd subcommand in fish (@languitar)
- Remove patch git-config-for-tests.patch:
  * Included by upstream
- Add patch test-helper.patch:
  * Allows tests to run on OBS; does not alter package contents

OBS-URL: https://build.opensuse.org/request/show/1087294
OBS-URL: https://build.opensuse.org/package/show/utilities/homeshick?expand=0&rev=21
2023-05-15 21:15:21 +00:00

59 lines
2.4 KiB
Diff

--- homeshick-2.0.1/bin/homeshick.orig 2023-04-14 22:54:17.855182545 +0200
+++ homeshick-2.0.1/bin/homeshick 2023-04-14 22:55:01.868514856 +0200
@@ -1,8 +1,8 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
repos="$HOME/.homesick/repos"
# Include all helper functions. We will include the required command function later on.
-homeshick=${HOMESHICK_DIR:-$HOME/.homesick/repos/homeshick}
+homeshick=${HOMESHICK_DIR:-/usr/share/homeshick}
# shellcheck source=../lib/exit_status.sh
source "$homeshick/lib/exit_status.sh"
# shellcheck source=../lib/fs.sh
--- homeshick-2.0.1/homeshick.csh.orig 2023-04-14 22:53:32.849717688 +0200
+++ homeshick-2.0.1/homeshick.csh 2023-04-14 22:54:03.522712974 +0200
@@ -1,6 +1,6 @@
# This helper script should be sourced via an alias, e.g.
#
-# alias homeshick "source $HOME/.homesick/repos/homeshick/homeshick.csh"
+# alias homeshick "source /usr/share/homeshick/homeshick.csh"
#
if ( "$1" == "cd" && "x$2" != "x" ) then
if ( -d "$HOME/.homesick/repos/$2/home" ) then
@@ -12,6 +12,6 @@
if ( $?HOMESHICK_DIR ) then
$HOMESHICK_DIR/bin/homeshick $*
else
- $HOME/.homesick/repos/homeshick/bin/homeshick $*
+ /usr/share/homeshick/bin/homeshick $*
endif
endif
--- homeshick-2.0.1/homeshick.fish.orig 2023-04-14 22:53:32.853717802 +0200
+++ homeshick-2.0.1/homeshick.fish 2023-04-14 22:54:03.522712974 +0200
@@ -1,5 +1,5 @@
# This script should be sourced in the context of your shell like so:
-# source $HOME/.homesick/repos/homeshick/homeshick.fish
+# source /usr/share/homeshick/homeshick.fish
# Alternatively, it can be installed into one of the directories
# that fish uses to autoload functions (e.g ~/.config/fish/functions)
# Once the homeshick() function is defined, you can type
@@ -13,6 +13,6 @@
else if set homeshick (type -P homeshick 2> /dev/null)
eval $homeshick (string escape -- $argv)
else
- eval $HOME/.homesick/repos/homeshick/bin/homeshick (string escape -- $argv)
+ eval /usr/share/homeshick/bin/homeshick (string escape -- $argv)
end
end
--- homeshick-2.0.1/homeshick.sh.orig 2023-04-14 22:53:32.853717802 +0200
+++ homeshick-2.0.1/homeshick.sh 2023-04-14 22:54:03.522712974 +0200
@@ -10,6 +10,6 @@
# shellcheck disable=SC2164
cd "$HOME/.homesick/repos/$2"
else
- "${HOMESHICK_DIR:-$HOME/.homesick/repos/homeshick}/bin/homeshick" "$@"
+ "${HOMESHICK_DIR:-/usr/share/homeshick}/bin/homeshick" "$@"
fi
}