[opensuse-packaging] Can someone explain what this macro does?
In one of the packages I'm working on, I've got the following in %prep %prep %setup -q -n %{name}-%{version} -a 1 mkdir menu_orig cp %{name}/{menu.*,plmenu.*} menu_orig %patch1 %patch2 -p1 %patch101 cp %{S:4} . cp %{S:6} . What do those last two cp commands do?
Quoting Shawn W Dunn <sfalken@gmail.com>:
In one of the packages I'm working on, I've got the following in %prep
%prep %setup -q -n %{name}-%{version} -a 1 mkdir menu_orig cp %{name}/{menu.*,plmenu.*} menu_orig %patch1 %patch2 -p1 %patch101 cp %{S:4} . cp %{S:6} .
What do those last two cp commands do?
They copy the files referenced as SOURCE4 and SOURCE6 to the current directory (%{S:6} is the short form of %{SOURCE6} ) Cheers, Dominique -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hi Shawn, On Thursday 10 April 2014 08:07:06 Shawn W Dunn wrote:
cp %{S:4} . cp %{S:6} .
What do those last two cp commands do?
This means that the files indicated with SOURCE4 and SOURCE6 are being copied to the current directory. %{S:4} is nothing more than a short version of %{SOURCE4}. Regards Raymond -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Dominique Leuenberger a.k.a. Dimstar
-
Raymond Wooninck
-
Shawn W Dunn