mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
refactor: instead of a hardcoded path, use the -r
when creating a relative link
This commit is contained in:
parent
90edabeb32
commit
6267101eaf
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ mkdir -p %{buildroot}/%{_bindir}
|
|||
mkdir -p %{buildroot}/usr/share/applications
|
||||
mkdir -p %{buildroot}/usr/share/icons
|
||||
cp -f ../../../SourceGit/* %{buildroot}/opt/sourcegit/
|
||||
ln -sf ../../opt/sourcegit/sourcegit %{buildroot}/%{_bindir}
|
||||
ln -rsf %{buildroot}/opt/sourcegit/sourcegit %{buildroot}/%{_bindir}
|
||||
cp -r ../../_common/applications %{buildroot}/%{_datadir}
|
||||
cp -r ../../_common/icons %{buildroot}/%{_datadir}
|
||||
chmod 755 -R %{buildroot}/opt/sourcegit
|
||||
|
|
|
@ -60,7 +60,7 @@ mkdir -p resources/deb/usr/bin
|
|||
mkdir -p resources/deb/usr/share/applications
|
||||
mkdir -p resources/deb/usr/share/icons
|
||||
cp -f SourceGit/* resources/deb/opt/sourcegit
|
||||
ln -sf ../../opt/sourcegit/sourcegit resources/deb/usr/bin
|
||||
ln -rsf resources/deb/opt/sourcegit/sourcegit resources/deb/usr/bin
|
||||
cp -r resources/_common/applications resources/deb/usr/share
|
||||
cp -r resources/_common/icons resources/deb/usr/share
|
||||
sed -i -e "s/^Version:.*/Version: $VERSION/" -e "s/^Architecture:.*/Architecture: $arch/" resources/deb/DEBIAN/control
|
||||
|
|
Loading…
Reference in a new issue