Skip to content

A simple Bash script to automate the conversion of C++ files into a CodeBlocks project.

License

Notifications You must be signed in to change notification settings

siew24/code2cbp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

code2cbp

A simple Bash script to automate the conversion of C++ files into a CodeBlocks project. (Because CMake still has problems with CodeBlocks generation here)

This small project arised from the sheer amount of time needed for me to create each CodeBlocks project just for each singular question from an assignment. So I thought to myself: Why not just code in VS Code and then automate the conversion process?

Hopefully someone will find this useful as I did!

Get Started

Just download both of the files: codeblocks.sh and data_2.dat.

Here's a simple explanation on where to put the files:

some_big_dir
|
- workspace_dir
  |
  - main.cpp
  - sources.cpp
  - some_headers.h
|
- sh_and_dat_files_go_here

To use the script, just type ./codeblocks.sh within some_big_dir on Bash to start the process.

Some notes

  • Currently only .cpp, .h and .hpp files are supported
  • The current script does not support space-separated source/header filenames
  • All source files and header files must be at the root of your workspace folder as the script does not check recursively for those files

About

A simple Bash script to automate the conversion of C++ files into a CodeBlocks project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages