2016-03-26 15:49:05 -05:00
|
|
|
#! /usr/bin/env python
|
|
|
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
if len(sys.argv) < 3:
|
|
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
pkg = sys.argv[1]
|
|
|
|
name = sys.argv[2]
|
2017-04-16 01:00:50 -05:00
|
|
|
namespace = "namespace nostalgia {\nnamespace %s {\n\n}\n}" % pkg
|
2017-04-04 19:21:29 -05:00
|
|
|
hpp = "#pragma once\n"
|
2016-03-26 15:49:05 -05:00
|
|
|
cpp = "#include \"%s.hpp\"\n\n%s" % (name, namespace)
|
|
|
|
|
|
|
|
open("src/%s/%s.hpp" % (pkg, name), "w").write(hpp)
|
|
|
|
open("src/%s/%s.cpp" % (pkg, name), "w").write(cpp)
|