- Upgrade to version 2.0.0:

* Breaking: Moved ./bin/homeshick.csh to ./homeshick.csh
  * Speed up refresh operation by reducing exec calls
  * Fix some path quoting issues

OBS-URL: https://build.opensuse.org/package/show/utilities/homeshick?expand=0&rev=15
This commit is contained in:
Olav Reinert 2020-05-16 12:02:07 +00:00 committed by Git OBS Bridge
parent 63f7d9a4e2
commit d5d6785c85
5 changed files with 24 additions and 17 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sat May 16 11:59:00 UTC 2020 - Olav Reinert <seroton10@gmail.com>
- Upgrade to version 2.0.0:
* Breaking: Moved ./bin/homeshick.csh to ./homeshick.csh
* Speed up refresh operation by reducing exec calls
* Fix some path quoting issues
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jun 7 19:47:32 UTC 2018 - seroton10@gmail.com Thu Jun 7 19:47:32 UTC 2018 - seroton10@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package homeshick # spec file for package homeshick
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,17 +12,17 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: homeshick Name: homeshick
Version: 1.1.0 Version: 2.0.0
Release: 0 Release: 0
Summary: Dotfile synchronizer based on Git and Bash Summary: Dotfile synchronizer based on Git and Bash
License: MIT License: MIT
Group: Productivity/File utilities Group: Productivity/File utilities
Url: https://github.com/andsens/homeshick URL: https://github.com/andsens/homeshick
Source0: https://github.com/andsens/homeshick/archive/v%{version}.tar.gz Source0: https://github.com/andsens/homeshick/archive/v%{version}.tar.gz
Source1: README-openSUSE.md Source1: README-openSUSE.md
Source99: homeshick.rpmlintrc Source99: homeshick.rpmlintrc
@ -33,10 +33,10 @@ BuildRequires: iputils
BuildRequires: tcsh BuildRequires: tcsh
Requires: bash >= 3 Requires: bash >= 3
Requires: git >= 1.5 Requires: git >= 1.5
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%if 0%{?is_opensuse} %if 0%{?is_opensuse}
BuildRequires: bats BuildRequires: bats
BuildRequires: dash
BuildRequires: fish BuildRequires: fish
%endif %endif
@ -50,14 +50,14 @@ plugins without clutter. It also makes it easy to install large external
frameworks, such as oh-my-zsh, found on sites like https://dotfiles.github.io/. frameworks, such as oh-my-zsh, found on sites like https://dotfiles.github.io/.
%prep %prep
%setup -q -n %{name}-%{version} %setup -q
%patch0 -p1 %patch0 -p1
%build %build
%install %install
mkdir -p %{buildroot}%{_datadir}/%{name} mkdir -p %{buildroot}%{_datadir}/%{name}
mv %{name}.sh %{name}.fish bin lib completions %{buildroot}%{_datadir}/%{name} mv %{name}.sh %{name}.fish %{name}.csh bin lib completions %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_bindir}
ln -s %{_datadir}/%{name}/bin/homeshick %{buildroot}%{_bindir}/%{name} ln -s %{_datadir}/%{name}/bin/homeshick %{buildroot}%{_bindir}/%{name}
cp %{SOURCE1} . cp %{SOURCE1} .
@ -69,7 +69,6 @@ if type bats &>/dev/null; then
fi fi
%files %files
%defattr(-,root,root)
%doc README.md README-openSUSE.md CONTRIBUTING.md %doc README.md README-openSUSE.md CONTRIBUTING.md
%license LICENSE %license LICENSE
%{_datadir}/%{name} %{_datadir}/%{name}

View File

@ -12,14 +12,14 @@ diff -r -u homeshick-1.1.0-orig/bin/homeshick homeshick-1.1.0/bin/homeshick
# On travis-ci exit_status for some reason errors out, ignore it # On travis-ci exit_status for some reason errors out, ignore it
# shellcheck disable=SC1090 # shellcheck disable=SC1090
source "$homeshick/lib/exit_status.sh" source "$homeshick/lib/exit_status.sh"
diff -r -u homeshick-1.1.0-orig/bin/homeshick.csh homeshick-1.1.0/bin/homeshick.csh diff -r -u homeshick-1.1.0-orig/homeshick.csh homeshick-1.1.0/homeshick.csh
--- homeshick-1.1.0-orig/bin/homeshick.csh 2018-04-12 21:52:30.000000000 +0200 --- homeshick-1.1.0-orig/homeshick.csh 2018-04-12 21:52:30.000000000 +0200
+++ homeshick-1.1.0/bin/homeshick.csh 2018-06-07 21:35:03.398240964 +0200 +++ homeshick-1.1.0/homeshick.csh 2018-06-07 21:35:03.398240964 +0200
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
# This helper script should be sourced via an alias, e.g. # This helper script should be sourced via an alias, e.g.
# #
-# alias homeshick "source $HOME/.homesick/repos/homeshick/bin/homeshick.csh" -# alias homeshick "source $HOME/.homesick/repos/homeshick/homeshick.csh"
+# alias homeshick "source /usr/share/homeshick/bin/homeshick.csh" +# alias homeshick "source /usr/share/homeshick/homeshick.csh"
# #
if ( "$1" == "cd" && "x$2" != "x" ) then if ( "$1" == "cd" && "x$2" != "x" ) then
if ( -d "$HOME/.homesick/repos/$2/home" ) then if ( -d "$HOME/.homesick/repos/$2/home" ) then
@ -55,7 +55,7 @@ diff -r -u homeshick-1.1.0-orig/homeshick.sh homeshick-1.1.0/homeshick.sh
@@ -1,6 +1,5 @@ @@ -1,6 +1,5 @@
-#!/usr/bin/env sh -#!/usr/bin/env sh
# This script should be sourced in the context of your shell like so: # This script should be sourced in the context of your shell like so:
-# source $HOME/.homeshick/repos/.homeshick/homeshick.sh -# source $HOME/.homesick/repos/.homeshick/homeshick.sh
+# source /usr/share/homeshick/homeshick.sh +# source /usr/share/homeshick/homeshick.sh
# Once the homeshick() function is defined, you can type # Once the homeshick() function is defined, you can type
# "homeshick cd CASTLE" to enter a castle. # "homeshick cd CASTLE" to enter a castle.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1894675f4f2ab002a97574445c03c7c7336c996c01023b7fc5e6668dce7d5a3c
size 33345

3
v2.0.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:14a538bfc2e7cb6bfd35c984cdedbf3d3293413a70cc67f685dbfbd33ce64fdd
size 33094