Compare commits
No commits in common. "5a1692b8dfa6bee0d618d7223fe5bb4b47c9a7ee" and "bca04c8ca03117fc6a971b4e7d83d600e9fc16ee" have entirely different histories.
5a1692b8df
...
bca04c8ca0
1 changed files with 1 additions and 16 deletions
17
otto.sh
17
otto.sh
|
|
@ -9,15 +9,6 @@ CROSS_COMPILE=1
|
|||
TEMPLATE_FILES=".template_files"
|
||||
MODULE_DIR="${TEMPLATE_FILES}/modules"
|
||||
|
||||
IS_FREEBSD=0
|
||||
is_freebsd () {
|
||||
UNAME="$(uname)"
|
||||
if [ $UNAME == "FreeBSD" ]; then
|
||||
IS_FREEBSD=1
|
||||
else
|
||||
IS_FREEBSD=0
|
||||
fi
|
||||
}
|
||||
|
||||
format_source_code () {
|
||||
#Get a list of all C files
|
||||
|
|
@ -136,14 +127,8 @@ add_new_module () {
|
|||
echo "Exiting without changing anything"
|
||||
exit
|
||||
fi
|
||||
|
||||
is_freebsd
|
||||
if [ IS_FREEBSD -eq 0]; then
|
||||
modname_cap=$(echo $modname | sed 's/[a-z]/\U&/g')
|
||||
else
|
||||
modname_cap=$( echo $modname | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/')
|
||||
fi
|
||||
|
||||
modname_cap=$(echo $modname | sed 's/[a-z]/\U&/g')
|
||||
modsrc_dir="./src/${modname}"
|
||||
modtest_dir="./tests/${modname}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue