[opensuse-support] OBS: Copy source files
Hi, in a spec file I can handle/copy a source file with cp %{S:1} . Doing this for a bunch of files in that manner is...not too smart. I remember there is a syntax that I can copy all files in one command, but I could not find it in wiki. Can anyone help? Thanks Axel -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Hello, Am Montag, 5. August 2019, 21:04:21 CEST schrieb Axel Braun:
in a spec file I can handle/copy a source file with cp %{S:1} .
Doing this for a bunch of files in that manner is...not too smart. I remember there is a syntax that I can copy all files in one command, but I could not find it in wiki.
Can anyone help?
It's not really packaging-specific - cp can cake multiple files as arguments if the target is a directory: cp %{S:1} %{S:2} %{S:3} /where/ever/ BTW: You might want to use "install" instead of "cp" to have control over the file permissions: install -m644 %{S:1} %{S:2} %{S:3} /where/ever/ Regards, Christian Boltz -- Linux sollte Linux bleiben und nicht versuchen, ein besseres Windows zu sein. Das ist IMHO der groesste Fehler! Warte mal noch ein oder zwei Jahre ab, da werden dann "blue screens" unter KDE vermutlich auch zum Alltag werden. [Thomas Hertweck in suse-linux] -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
participants (2)
-
Axel Braun
-
Christian Boltz