recentpopularlog in

kme : macros   16

readline - How do I reload .inputrc using a bash script? - Super User |
Use the bind command:
<code class="language-bash">
bind -f ~/.inputrc

See help bind for more information:
-f filename Read key bindings from FILENAME.
keybindings  macros  inputrc  bash  configfile  configsettings  solution 
october 2018 by kme
c++ - Multi line preprocessor macros - Stack Overflow
You use \ as a line continuation escape character.

#define swap(a, b) { \
(a) ^= (b); \
(b) ^= (a); \
(a) ^= (b); \
c  devel  cpp  preprocessor  macros  linecontinuationcharacter  solution 
january 2017 by kme
Macros: Helpful Shorthand for Package Builders
-n <name> — Set Name of Build Directory

In our example above, the %setup macro simply uncompressed and unpacked the sources. In this case, the tar file containing the original sources was created such that the top-level directory was included in the tar file. The name of the top-level directory was also identical to that of the tar file, which was in <name>-<version> format.

However, this is not always the case. Quite often, the original sources unpack into a directory whose name is different than the original tar file. Since RPM assumes the directory will be called <name>-<version>, when the directory is called something else, it's necessary to use %setup's -n option. Here's an example:

Assume, for a moment, that the cdplayer sources, when unpacked, create a top-level directory named cd-player. In this case, our %setup line would look like this:

%setup -n cd-player
centos  macro  macros  rhel  rpm  packagemanagement  solution  reference 
september 2014 by kme

Copy this bookmark:

to read