aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xrun13
2 files changed, 14 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 3994e90..079a0e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
Melvix.iml
+tags
CMakeLists.txt
compile_commands.json
diff --git a/run b/run
index 127eab7..3c2e43e 100755
--- a/run
+++ b/run
@@ -148,6 +148,17 @@ make_image() {
rm install.log
}
+make_sync() {
+ rm tags compile_commands.json
+ ctags -R --exclude=.git --exclude=build --exclude=iso --exclude=cross .
+ mkdir cmake
+ cd cmake
+ cmake .. > /dev/null
+ mv compile_commands.json ..
+ cd ..
+ rm -rf cmake
+}
+
make_clean() {
rm -rf ./build ./iso
}
@@ -177,6 +188,8 @@ elif [ "${mode}" = "image" ]; then
make_clean
make_build
make_image
+elif [ "${mode}" = "sync" ]; then
+ make_sync
else
echo "Please use the following syntax:"
echo "./run {cross | build | clean | test | debug | image}"