GithubHelp home page GithubHelp logo

cookiecutter-etna-c's Introduction

FOSSA Status

cookiecutter-etna-c

cookiecutter-etna-c is a template for simple projects written in C with autotools.

Usage

You need cookiecutter, a tool to create projects from project templates. Once installed (in a virtualenv or just with pip install cookiecutter), you can use the following command:

cookiecutter https://github.com/aten2k/cookiecutter-etna-c.git
cd your-project
git init
git add .
git commit -m "Initial commit"

Then, use the following command to get the first steps to get started:

git ls-tree -r --name-only HEAD | \
      xargs grep -nH "T[O]DO:" | \
      sed 's/\([^:]*:[^:]*\):\(.*\)T[O]DO:\(.*\)/\3 (\1)/' | \
      sort -ns | \
      awk '(last != $1) {print ""} {last=$1 ; print}'

Once you are done, your project is ready and you can compile it with and get a release tarball with:

sh autogen.sh
mkdir build
cd build
../configure
make
make dist

Once you want to make a release, tag the tree with git tag 1.3, then run the previous commands from the top. You'll get a properly versioned tarball with a ChangeLog file if this is not your first version.

License

FOSSA Status

cookiecutter-etna-c's People

Contributors

tbobm avatar fossabot avatar

Stargazers

Florian Schäffeler avatar

Watchers

James Cloos avatar  avatar

Forkers

fossabot

cookiecutter-etna-c's Issues

Fix base files

Base files ({{cookiecutter_project_name|lower}}.c and log.c) provide some compile time errors. (PACKAGE, vasprintf...)

bootstrap.c: In function ‘usage’:
bootstrap.c:36:35: error: ‘PACKAGE_STRING’ undeclared (first use in this function)
  fprintf(stderr, "Version: %s\n", PACKAGE_STRING);
                                   ^~~~~~~~~~~~~~
bootstrap.c:36:35: note: each undeclared identifier is reported only once for each function it appears in
bootstrap.c:42:37: error: expected ‘)’ before ‘PACKAGE’
  fprintf(stderr, "see manual page " PACKAGE "(8) for more information\n");
                                     ^~~~~~~
bootstrap.c: In function ‘main’:
bootstrap.c:69:28: error: ‘PACKAGE_VERSION’ undeclared (first use in this function)
    fprintf(stdout, "%s\n", PACKAGE_VERSION);
                            ^~~~~~~~~~~~~~~
log.c: In function ‘vlog’:
log.c:130:7: warning: implicit declaration of function ‘vasprintf’ [-Wimplicit-function-declaration]
   if (vasprintf(&result, fmt, ap) != -1) {
       ^~~~~~~~~
log.c:140:7: warning: implicit declaration of function ‘asprintf’ [-Wimplicit-function-declaration]
   if (asprintf(&nfmt, "%s %s%s%s]%s %s\n",
       ^~~~~~~~

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.