Skip to content

jkin0/cprojb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

cprojb

A simple C project builder script.

Installation

  1. Download the shell script via the releases page or with wget:
wget https://raw.githubusercontent.com/jkin0/cprojb/master/cprojb.sh
  1. Give the script permissions:
chmod +x ./cprojb.sh
  1. Make the script global:
sudo mv cprojb.sh /usr/bin/cprojb

Usage

cprojb <[project_name], [flag]>

Flags

  • -h - show help information
  • -v - show cprojb version

Example

$ cprojb test
created directory 'test'
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint:   git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint:   git branch -m <name>
Initialised empty Git repository in /home/joshua/Documents/cprojb/test/.git/
test: created src directory
test: created src/main.c
test: created Makefile
test: created .gitignore
test: created README.md
cprojb: successfully created project 'test'