Add C++ to mkcodemod
This commit is contained in:
parent
e1ae600953
commit
1b26155828
1 changed files with 6 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
# Create a code module
|
# Create a code module
|
||||||
# Eryn Wells <eryn@erynwells.me>
|
# Eryn Wells <eryn@erynwells.me>
|
||||||
|
|
||||||
local opts='cmph'
|
local opts='Ccmph'
|
||||||
local funcname=$0
|
local funcname=$0
|
||||||
|
|
||||||
_usage() {
|
_usage() {
|
||||||
|
@ -24,6 +24,11 @@ local modtype=''
|
||||||
while getopts $opts opt; do
|
while getopts $opts opt; do
|
||||||
[[ $complete -eq 1 ]] && return 2
|
[[ $complete -eq 1 ]] && return 2
|
||||||
case $opt in
|
case $opt in
|
||||||
|
C)
|
||||||
|
modtype='C++'
|
||||||
|
srcext='cc'
|
||||||
|
headext='hh'
|
||||||
|
;;
|
||||||
c)
|
c)
|
||||||
modtype='C'
|
modtype='C'
|
||||||
srcext='c'
|
srcext='c'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue