mirror of
https://github.com/gwebu-team/profile.d.git
synced 2025-12-09 12:05:46 +00:00
New shebang for changelog.sh, post-commit hook in README.md.
Some checks failed
Makefile CI / build (push) Has been cancelled
Some checks failed
Makefile CI / build (push) Has been cancelled
This commit is contained in:
parent
3df2a4eade
commit
45d926a3a9
3 changed files with 28 additions and 2 deletions
14
README.md
14
README.md
|
|
@ -2,3 +2,17 @@
|
|||
|
||||
This is a collection of /etc/profile.d files used by the gwebu team.
|
||||
Unless explicitly stated in the file itself, the license is [The Unlicense](https://choosealicense.com/licenses/unlicense/).
|
||||
|
||||
## Hooks
|
||||
|
||||
Create the following hook in your local repository to update the RPM changelog for you:
|
||||
|
||||
|
||||
```bash
|
||||
echo '#!/usr/bin/env bash
|
||||
|
||||
set -eu
|
||||
|
||||
./changelog.sh' > .git/hooks/post-commit
|
||||
chmod a+x .git/hooks/post-commit
|
||||
```
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
shopt -s nullglob dotglob
|
||||
|
||||
ver=$(git describe --dirty --long --match='v[0-9]*.[0-9]*' | cut -c 2- | cut -d - -f 1,2,4)
|
||||
rpm_ver="${ver%%-*}"
|
||||
|
|
@ -14,3 +17,7 @@ awk -v change="${change}" '/^%changelog/ {print; print change; next} 1' gwebu-pr
|
|||
|
||||
sed -i "s/Version: .*/Version: ${rpm_ver}/" gwebu-profile.spec.in
|
||||
sed -i "s/Release: .*/Release: ${rpm_numeric_rev}/" gwebu-profile.spec.in
|
||||
|
||||
git add gwebu-profile.spec.in
|
||||
|
||||
echo "gwebu-profile.spec.in changelog updated"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
Summary: Gwebu profile.d - cool date, prompt with history, aliases
|
||||
Name: gwebu-profile
|
||||
Version: 1.0.2
|
||||
Release: 5
|
||||
Release: 6
|
||||
BuildArch: noarch
|
||||
License: GPLv2
|
||||
Source0: profile.d-%{version}-%{release}.tar.xz
|
||||
|
|
@ -41,6 +41,11 @@ install -m 0644 etc/profile.d/*.sh %{buildroot}%{_sysconfdir}/profile.d/
|
|||
|
||||
|
||||
%changelog
|
||||
* Thu May 30 2024 Doncho N. Gunchev <dgunchev@gmail.com> - 1.0.2-6
|
||||
- New shebang for changelog.sh, post-commit hook in README.md.
|
||||
|
||||
* Thu May 30 2024 Doncho N. Gunchev <dgunchev@gmail.com> - 1.0.2-6
|
||||
|
||||
* Thu May 30 2024 Doncho N. Gunchev <dgunchev@gmail.com> - 1.0.2-5
|
||||
- Add ssh control masters management aliases. Silence a which.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue