moved scripts into subdirectory

This commit is contained in:
Daniel Mensinger 2019-07-01 12:37:18 +02:00
parent 3c64b3da97
commit 2a2a34601c
No known key found for this signature in database
GPG Key ID: 54DD94C131E277D4
4 changed files with 12 additions and 2 deletions

View File

@ -1,6 +1,6 @@
project('spdlog', ['cpp'],
license : 'MIT',
version : run_command(find_program('extract_version.py')).stdout().strip(),
version : run_command(find_program('scripts/extract_version.py')).stdout().strip(),
default_options : [
'warning_level=3',
'cpp_std=c++11',

View File

@ -1 +1,6 @@
#!/bin/bash
cd "$(dirname "$0")"
cd ..
clang-tidy example/example.cpp -- -I ./include

View File

@ -3,7 +3,7 @@
import os
import re
base_path = os.path.abspath(os.path.dirname(__file__))
base_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
config_h = os.path.join(base_path, 'include', 'spdlog', 'version.h')
data = {'MAJOR': 0, 'MINOR': 0, 'PATCH': 0}
reg = re.compile(r'^\s*#define\s+SPDLOG_VER_([A-Z]+)\s+([0-9]+).*$')

View File

@ -1,3 +1,8 @@
#!/bin/bash
cd "$(dirname "$0")"
cd ..
echo -n "Running dos2unix "
find . -name "*\.h" -o -name "*\.cpp"|grep -v bundled|xargs -I {} sh -c "dos2unix '{}' 2>/dev/null; echo -n '.'"
echo