Git Product home page Git Product logo

cscript-1's Introduction

Simple scripts to allow C/C++ (and maybe other things) to act like bash scripts

Al Williams -- Hackaday August, 2019
Public Domain

Installation:
Put all the cscript_* files into a directory that is on your path that source (or . if you prefer) can find.
I put mine in /usr/local/bin but that requires you are root. If you have your own ~/bin directory you won't
need root, but it does need to be on your path.

Usage:
See example.c

The idea is to put this boilerplate in front of your C/C++ program:

#!/usr/bin/env bash
#if 0
source cscript_XXX
#endif

Where XXX is one of the items below.

There are three cscript_ files although you can make your own:

* cscript_simplec - Runs gcc on C code with -O3 option (or use CCOPTS
* cscript_simplecpp - Same as simplec, but use g++
* cscript_makefile - Runs makefile (e.g., example.c.make)

cscript-1's People

Contributors

wd5gnr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.