aboutsummaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorMarvin Borner2020-03-18 23:00:04 +0100
committerMarvin Borner2020-03-18 23:00:04 +0100
commitb76f7ed9a1728b5cbf1ca49b2cb051bd0073cae8 (patch)
tree09d1d51b4edba2b792bbe072e71178ab136b298e /run
parentf495cc1e93710c233292a503720ec235a61b685c (diff)
Added awesome sync command
Diffstat (limited to 'run')
-rwxr-xr-xrun13
1 files changed, 13 insertions, 0 deletions
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}"