summaryrefslogtreecommitdiff
path: root/structures/run.sh
diff options
context:
space:
mode:
authorAndrew Guschin <saintruler@gmail.com>2021-02-09 09:44:51 +0400
committerAndrew Guschin <saintruler@gmail.com>2021-02-09 09:44:51 +0400
commit2f9aaa4bd1fc15aa7602eb1ea169ee01c626c737 (patch)
tree6d3cb14b0a6589feac24475ec5363ba59c36e8ad /structures/run.sh
Initial commit
Diffstat (limited to 'structures/run.sh')
-rwxr-xr-xstructures/run.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/structures/run.sh b/structures/run.sh
new file mode 100755
index 0000000..f076a51
--- /dev/null
+++ b/structures/run.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+name="${1%%.*}"
+g++ -Wall -o $name.out $name.cpp
+./$name.out
+rm $name.out
+