[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpm --topdir mytopdir



I wanted to be able to specify --topdir on the command line, so I looked
at /usr/lib/rpm/rpmpopt* and, copying the predefined aliases, I added a
new one

rpm alias --topdir --define '_topdir !#:+'

Now I can do:
$ rpm --topdir abcd --eval %_topdir
abcd
$

The problems are:
1) Is doing this ok, or there are some side-effects that may not be
visible at first sight? (Since all this stuff is not documented
extensively I'm not sure to have done it the right way)
2) I'd prefer to add the alias to a "personal" file, like .rpmmacros for
macros. Is this possible? Tried .rpmpopt with no success.

Thanks

-- 
giulioo@pobox.com





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []