diff --git a/Makefile b/Makefile index be150c8..6874f22 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ LIBC_SRC_DIRS := stdio string ctype LIBC_C_FILES := $(foreach dir,$(LIBC_SRC_DIRS),$(wildcard libc/$(dir)/*.c)) LIBC_OBJ := $(addprefix $(BUILD_DIR)/,$(LIBC_C_FILES:.c=.o)) -BUILD_ID := $(shell tools/generate_build_id.py --arch $(SOCKS_ARCH)) +BUILD_ID := $(shell tools/socks.buildid --arch $(SOCKS_ARCH)) CWARNINGS := -Wall -Werror -pedantic -Wno-language-extension-token -Wno-unused-function -Wno-gnu-statement-expression @@ -84,7 +84,7 @@ clean: $(BUILD_DIR)/compile_commands.json: @printf " \033[1;93mGEN\033[0m Generating compiler database.\n" - @./tools/make/generate_compile_commands.py + @./tools/socks.compiledb compile-db: $(BUILD_DIR)/compile_commands.json diff --git a/tools/generate_build_id.py b/tools/socks.buildid similarity index 94% rename from tools/generate_build_id.py rename to tools/socks.buildid index 1a0409c..b42ccd5 100755 --- a/tools/generate_build_id.py +++ b/tools/socks.buildid @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# vim: ft=python +# -*- mode: python -*- + import subprocess import sys diff --git a/tools/make/generate_compile_commands.py b/tools/socks.compiledb similarity index 97% rename from tools/make/generate_compile_commands.py rename to tools/socks.compiledb index 9e623b1..444a41a 100755 --- a/tools/make/generate_compile_commands.py +++ b/tools/socks.compiledb @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# vim: ft=python +# -*- mode: python -*- + import json import subprocess import os diff --git a/tools/socks.kexttool b/tools/socks.kexttool new file mode 100755 index 0000000..c7c6e3e --- /dev/null +++ b/tools/socks.kexttool @@ -0,0 +1,5 @@ +#!/usr/bin/env python3 +# vim: ft=python +# -*- mode: python -*- + +print('hello, world') diff --git a/tools/sync.py b/tools/socks.sync similarity index 98% rename from tools/sync.py rename to tools/socks.sync index c89f648..a5033a5 100755 --- a/tools/sync.py +++ b/tools/socks.sync @@ -1,4 +1,8 @@ #!/usr/bin/env python3 + +# vim: ft=python +# -*- mode: python -*- + import json import os import sys