tools: Update some of the lint scripts with a better system to find source files
This commit is contained in:
parent
e378d8ee2f
commit
2f2b45758e
@ -4,11 +4,7 @@ source $(dirname $0)/env.sh
|
|||||||
|
|
||||||
cd $LUNA_ROOT
|
cd $LUNA_ROOT
|
||||||
|
|
||||||
SOURCES=($(find kernel/src -type f | grep -v "\.asm"))
|
source tools/sources.sh
|
||||||
SOURCES+=($(find libluna/src -type f))
|
|
||||||
SOURCES+=($(find libluna/include/luna -type f))
|
|
||||||
SOURCES+=($(find libos/src -type f))
|
|
||||||
SOURCES+=($(find libos/include/os -type f))
|
|
||||||
|
|
||||||
ALL_OK=1
|
ALL_OK=1
|
||||||
|
|
||||||
|
@ -1,15 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
|
||||||
source $(dirname $0)/env.sh
|
source $(dirname $0)/env.sh
|
||||||
|
|
||||||
cd $LUNA_ROOT
|
cd $LUNA_ROOT
|
||||||
|
|
||||||
SOURCES=($(find kernel/src -type f | grep -v "\.asm" | grep -v "bootboot.h"))
|
source tools/sources.sh
|
||||||
SOURCES+=($(find libluna/src -type f))
|
|
||||||
SOURCES+=($(find libluna/include/luna -type f | grep -v "Types.h"))
|
SOURCES=($(printf -- '%s\n' "${SOURCES[@]}" | grep -v libc | grep -v "Types.h" | grep -v "bootboot.h"))
|
||||||
SOURCES+=($(find libos/src -type f))
|
|
||||||
SOURCES+=($(find libos/include/os -type f))
|
|
||||||
|
|
||||||
SUCCESS=1
|
SUCCESS=1
|
||||||
|
|
||||||
|
@ -5,11 +5,9 @@ source $(dirname $0)/env.sh
|
|||||||
|
|
||||||
cd $LUNA_ROOT
|
cd $LUNA_ROOT
|
||||||
|
|
||||||
SOURCES=($(find kernel/src -type f | grep -v "\.asm" | grep -v "bootboot.h"))
|
source tools/sources.sh
|
||||||
SOURCES+=($(find libluna/src -type f))
|
|
||||||
SOURCES+=($(find libluna/include/luna -type f | grep -v "Types.h"))
|
SOURCES=($(printf -- '%s\n' "${SOURCES[@]}" | grep -v libc | grep -v "Types.h" | grep -v "bootboot.h"))
|
||||||
SOURCES+=($(find libos/src -type f))
|
|
||||||
SOURCES+=($(find libos/include/os -type f))
|
|
||||||
|
|
||||||
for f in ${SOURCES[@]}
|
for f in ${SOURCES[@]}
|
||||||
do
|
do
|
||||||
|
@ -5,11 +5,7 @@ source $(dirname $0)/env.sh
|
|||||||
|
|
||||||
cd $LUNA_ROOT
|
cd $LUNA_ROOT
|
||||||
|
|
||||||
SOURCES=($(find kernel/src -type f | grep -v "\.asm"))
|
source tools/sources.sh
|
||||||
SOURCES+=($(find libluna/src -type f))
|
|
||||||
SOURCES+=($(find libluna/include/luna -type f))
|
|
||||||
SOURCES+=($(find libos/src -type f))
|
|
||||||
SOURCES+=($(find libos/include/os -type f))
|
|
||||||
|
|
||||||
for f in ${SOURCES[@]}
|
for f in ${SOURCES[@]}
|
||||||
do
|
do
|
||||||
|
12
tools/sources.sh
Executable file
12
tools/sources.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
source $(dirname $0)/env.sh
|
||||||
|
|
||||||
|
cd $LUNA_ROOT
|
||||||
|
|
||||||
|
FOLDERS=(kernel libc libos libluna apps)
|
||||||
|
|
||||||
|
SOURCES=($(find ${FOLDERS[@]} -type f -name "*.cpp"))
|
||||||
|
SOURCES+=($(find ${FOLDERS[@]} -type f -name "*.h"))
|
||||||
|
|
||||||
|
export SOURCES
|
Loading…
Reference in New Issue
Block a user