WKern
Loading...
Searching...
No Matches
frules.py
Go to the documentation of this file.
1
17
18
import
subprocess
19
from
bfiles.files
import
*
20
import
os
21
from
pathlib
import
Path
22
from
datetime
import
datetime
23
from
bfiles.toolsflags
import
*
24
def
fmt
():
25
os.chdir(Path(__file__).resolve().parents[1])
26
subprocess.run([
"clang-format"
,
"-i"
, *SRCS, *HEADS])
27
28
def
git
():
29
os.chdir(Path(__file__).resolve().parents[1])
30
subprocess.run([
"./loc.sh"
])
31
subprocess.run([
"git"
,
"add"
,
"."
])
32
subprocess.run([
"git"
,
"commit"
,
"-m"
,
"Updated at: "
+ datetime.now().strftime(
"%H:%M:%S"
)])
33
subprocess.run([
"git"
,
"push"
,
"origin"
,
"main"
])
34
35
def
run
():
36
os.chdir(Path(__file__).resolve().parents[1])
37
subprocess.run([QEMU, *QEMUFLAGS])
38
39
def
chkm
():
40
os.chdir(Path(__file__).resolve().parents[1])
41
try
:
42
subprocess.run([
"i686-elf-grub-file"
,
"--is-x86-multiboot"
,
"kernel.elf"
], check=
True
)
43
except
subprocess.CalledProcessError:
44
print(
"Invalid multiboot header"
)
files
toolsflags
frules.run
run()
Definition
frules.py:35
frules.git
git()
Definition
frules.py:28
frules.chkm
chkm()
Definition
frules.py:39
frules.fmt
fmt()
Definition
frules.py:24
bfiles
frules.py
Generated on
for WKern by
1.14.0