Skip to content

trebuh/fake-program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fake program

Goal

This program does nothing.

The idea is just to have a program named fake-program running on your system.

It is also possible to have it run at system boot as a systemd service.

A manual page is provided.

In addition, this project was an opportunity to test Meson build system.

Important

The program here is called " fake-program " You can easily replace it by a name of your choosing by running the following commands in the main directory:

$ sed -i 's/fake-program/YOUR_PROGRAM_NAME/g' meson.build
$ rename fake-program YOUR_PROGRAM_NAME *

Installation

Clone the project

$ git clone https://github.com/hcabot/fake-program
$ cd fake-program

You can now either:

  • build it manually and use it straightaway

  • build and install it using Meson

Meson is configured to use Ninja.

The build system will execute the following steps:

  1. Setup the build

  2. Compile

  3. Install the executable in /usr/local/bin/

  4. Install the manual page

  5. Install the fake-program.service systemd service file

Pick one of the following steps.

Build manually

$ gcc -Wall -Wextra main.c -o fake-program

Build using Meson

$ meson setup builddir
$ cd builddir
$ ninja
$ sudo ninja install

About

A program that does nothing

Resources

License

Stars

Watchers

Forks

Packages

No packages published