fix: justfile set-project-name now clears build and bin directories
This commit is contained in:
parent
70e195ad16
commit
ebdc1e50ae
1
justfile
1
justfile
|
|
@ -2,6 +2,7 @@ set-project-name projectname:
|
||||||
sed -i "s/CHANGEME/{{projectname}}/g" ./CMakeLists.txt ./src/CMakeLists.txt ./justfile .kdev4/*
|
sed -i "s/CHANGEME/{{projectname}}/g" ./CMakeLists.txt ./src/CMakeLists.txt ./justfile .kdev4/*
|
||||||
mv ./src/CHANGEME.cpp ./src/{{projectname}}.cpp
|
mv ./src/CHANGEME.cpp ./src/{{projectname}}.cpp
|
||||||
sed -i "s/CHANGEME.cpp/{{projectname}}.cpp/g" ./justfile
|
sed -i "s/CHANGEME.cpp/{{projectname}}.cpp/g" ./justfile
|
||||||
|
rm -rf build bin
|
||||||
|
|
||||||
generate:
|
generate:
|
||||||
cmake -S. -Bbuild
|
cmake -S. -Bbuild
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue