Skip to content

SrVariable/42ProjectTemplateBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42 Project Template Builder

Table of Contents

  1. Description
  2. Requirements
  3. Usage

Description

This is a Python script that builds a 42 Project Template for your C Projects.

Requirements

  • Git
  • Python3

Usage

Clone the repository:

git clone https://github.com/SrVariable/42ProjectTemplateBuilder

Go inside the folder:

cd 42ProjectTemplateBuilder

Run the file:

python3 main.py

It will ask you the project name, your login, your email and a tag, which will be displayed alongside 42 logo.

Project Name: hello_world
Login: ribana-b
Email: ribana-b@student.42malaga.com
Tag: Málaga

Tag field is optional. By default, it is set to your campus, extracted from email.

Note

If you don't want to introduce your data every time you run the script you can create a .env file following the .env.example in the root directory of 42ProjectTemplateBuilder.

It will create the following directory tree in the current directory:

| - hello_world
|   | - include
|   |   | - hello_world.h
|   | - src
|   |   | - hello_world.c
|   | - utils
|   |   | - utils.c
|   | - Makefile

About

A template generator for 42 C Projects

Topics

Resources

Stars

Watchers

Forks

Contributors