Difference between pages "Build rpm packages with checkinstall" and "BAsh Operator"

From Linuxintro
(Difference between pages)
imported>ThorstenStaerk
 
imported>ThorstenStaerk
(Redirected page to BASH OPERATORS)
 
Line 1: Line 1:
This is an example how to [[build rpm packages]] using the checkinstall tool. We will a program that only outputs "hello world" and create an [[rpm]] [[package]] from it. We do this in a folder hello.
+
#REDIRECT [[BASH OPERATORS]]
 
 
= The program =
 
Here is how we create our program, hello world:
 
<pre>
 
cd
 
mkdir hello
 
cd hello
 
cat >main.c <<EOF
 
#include <stdio.h>
 
 
 
int main()
 
{
 
  printf("hello world");
 
}
 
EOF
 
</pre>
 
 
 
= The Makefile =
 
To [[build]] our program, we need a [[makefile]]. Here is how we create it:
 
<pre>
 
cat >Makefile <<EOF
 
all:hello
 
 
 
hello: main.c
 
        gcc main.c -o hello
 
EOF
 
sed -i "s/        /\t/g" Makefile
 
</pre>
 

Revision as of 08:19, 5 December 2012

Redirect to: