fixes and default .gitignore

This commit is contained in:
Timerix22 2023-02-13 21:43:23 +06:00
parent 21be08ec55
commit 92de4ab1d7
5 changed files with 28 additions and 1 deletions

16
.gitignore vendored Normal file
View File

@ -0,0 +1,16 @@
# build results
bin/
obj/
*.log
*.tmp
# IDE files
.vs/
.vshistory/
.editorconfig
*.user
*.vcxproj.filters
# other files
.old*/
current.config

View File

@ -11,3 +11,8 @@
+ added makefile task fix_log
+ new comments in scripts and Makefile
+ wrapped arguments with quots in scripts
+ now u should add CPP_ARGS to LINKER_ARGS manually
+ added error(msg) function to functions.sh
+ replaced printf calls with myprint in scripts
+ added default .gitignore
+ added *.log to .gitignore

View File

@ -2,3 +2,5 @@
delete_dir "$OBJDIR"
delete_dir "$OUTDIR"
myprint "${WHITE}deleting build logs"
rm -rf *.log

View File

@ -92,7 +92,7 @@ $(find $OBJDIR/libs -name '*.a')"
# (outfile)
function pack_static_lib {
myprint "${CYAN}----------[pack_static_lib]-----------"
local outfile="$OUTDIR/$1"
local outfile="$1"
myprint "${BLUE}outfile: ${GRAY}$outfile"
local objects="$(find $OBJDIR/objects -name *.o)
$(find $OBJDIR/libs -name '*.a')"

View File

@ -26,3 +26,7 @@ esac
cp cbuild/default.Makefile Makefile
cp cbuild/default.config ./
echo "copy default .gitignore? [y/any]"
read answ
[[ "$answ"="y" ]] && cp cbuild/.gitignore ./