fix: justfile set-project-name now clears build and bin directories

This commit is contained in:
Sara Gerretsen 2025-09-04 10:52:19 +02:00
parent 70e195ad16
commit ebdc1e50ae

View file

@ -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