Skip to content
Snippets Groups Projects
Commit 1f7f8adc authored by ilor's avatar ilor
Browse files

boilerplate and mk.sh script for libcorpus2

parent bcfed015
Branches
No related tags found
No related merge requests found
#include <libcorpus/$LN.h>
namespace Corpus2 {
} /* end ns Corpus2 */
#ifndef LIBSORPUS2_$UN_H
#define LIBCORPUS2_$UN_H
namespace Corpus2 {
} /* end ns Corpus2 */
#endif // LIBCORPUS2_$UN_H
#!/bin/bash
cp boilerplate.h.in $1.h
U=`echo $1 | tr '[:lower:]' '[:upper:]' | sed -s 's%/%_%g'`
sed -i -s "s#\$UN#$U#" $1.h
cp boilerplate.cpp.in $1.cpp
sed -i -s "s#\$LN#$1#" $1.cpp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment