Results 1 to 2 of 2

Thread: difference "mv" and "%{__mv}"

  1. #1
    Join Date
    Dec 2008
    Location
    Warsaw, Poland
    Posts
    89

    Question difference "mv" and "%{__mv}"

    I've seen in some spec files, that all commands are macros like %__make, %__install, %__cp, %__mv and so on.

    Do you know whats the difference? Or why to use these macros instead of commands?
    Kick Ass! https://web.archive.org/web/20130106180239/http://blog.hennevogel.de/kick-ass/

  2. #2

    Default Re: difference "mv" and "%{__mv}"

    They are usually always the same on most systems/distributions/OSes.

    The macro version is safer to use if you are building a package on multiple systems, one of which might use a different command for 'mv', like 'mv2' (which doesn't exist as far as I know, this is just an example.) In which case RPM has that already mapped for you, and you don't have to keep track of every case in the SPEC file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •