project name printing from config

This commit is contained in:
timerix 2023-01-15 22:23:45 +06:00
parent bad865d76c
commit ab88f34a61
2 changed files with 6 additions and 5 deletions

View File

@ -1,8 +1,9 @@
#!/bin/bash
CBUILD_VERSION=2
CBUILD_VERSION=3
CONFIG_VERSION=1
PROJECT="NULL"
echo "reading $PROJECT default config..."
CMP_C=gcc
CMP_CPP=g++
STD_C=c11
@ -11,8 +12,8 @@ WARN_C="-Wall -Wno-discarded-qualifiers"
WARN_CPP="-Wall"
SRC_C="$( find src -name '*.c')"
SRC_CPP="$( find src -name '*.cpp')"
TESTS_C="$( find tests -name '*.c')"
TESTS_CPP="$(find tests -name '*.cpp')"
TESTS_C=""#"$( find tests -name '*.c')"
TESTS_CPP=""#"$(find tests -name '*.cpp')"
OUTDIR=bin
OBJDIR=obj

View File

@ -30,11 +30,11 @@ source current.config
# checking versions
if [ ! $CBUILD_VERSION -eq $DEFAULT_CBUILD_VERSION ]; then
printf "${RED}Your config was created for outdated cbuild version\n${GRAY}"
printf "${RED}config was created for outdated cbuild version\n${GRAY}"
exit
fi
if [ ! $CONFIG_VERSION -eq $DEFAULT_CONFIG_VERSION ]; then
printf "${RED}Your config version isn't correct\n${GRAY}"
printf "${RED}config version isn't correct\n${GRAY}"
exit
fi