Fixed RPM build.

- use only $VER (no more $VER1) to avoid confusion
- added themes directory
master
Bernhard Graf 11 years ago
parent a4a79027d9
commit 1d9cc2fcbe
  1. 5
      README.md
  2. 2
      bash-git-prompt.spec

@ -260,10 +260,10 @@ from scratch by following this procedure:
* Run the following command to create a tarball: * Run the following command to create a tarball:
````sh ````sh
VER1=$(git describe) VER=$(git describe)
# replace dash with underscore to work around # replace dash with underscore to work around
# rpmbuild does not allow dash in version string # rpmbuild does not allow dash in version string
VER=${VER1//\-/_} VER=${VER//\-/_}
git archive \ git archive \
--format tar \ --format tar \
--prefix=bash-git-prompt-${VER}/ \ --prefix=bash-git-prompt-${VER}/ \
@ -272,6 +272,7 @@ from scratch by following this procedure:
*.py \ *.py \
*.fish \ *.fish \
README.md \ README.md \
themes \
> bash-git-prompt-${VER}.tar > bash-git-prompt-${VER}.tar
mkdir -p /tmp/bash-git-prompt-${VER} mkdir -p /tmp/bash-git-prompt-${VER}
sed "s/Version:.*/Version: ${VER}/" \ sed "s/Version:.*/Version: ${VER}/" \

@ -34,6 +34,8 @@ install -pm 755 *.sh %{buildroot}%{_datadir}/%{name}
install -pm 755 *.py %{buildroot}%{_datadir}/%{name} install -pm 755 *.py %{buildroot}%{_datadir}/%{name}
install -pm 755 *.fish %{buildroot}%{_datadir}/%{name} install -pm 755 *.fish %{buildroot}%{_datadir}/%{name}
install -pm 644 README.md %{buildroot}%{_datadir}/%{name} install -pm 644 README.md %{buildroot}%{_datadir}/%{name}
install -d 755 %{buildroot}%{_datadir}/%{name}/themes
install -pm 644 themes/*.bgptheme %{buildroot}%{_datadir}/%{name}/themes
# never include compiled Python program # never include compiled Python program
rm -fr %{buildroot}%{_datadir}/%{name}/*.pyo rm -fr %{buildroot}%{_datadir}/%{name}/*.pyo

Loading…
Cancel
Save