aboutsummaryrefslogtreecommitdiff
path: root/store/works/life/lanqiao-selection-match/cpp-build.rb
diff options
context:
space:
mode:
Diffstat (limited to 'store/works/life/lanqiao-selection-match/cpp-build.rb')
-rwxr-xr-xstore/works/life/lanqiao-selection-match/cpp-build.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/store/works/life/lanqiao-selection-match/cpp-build.rb b/store/works/life/lanqiao-selection-match/cpp-build.rb
new file mode 100755
index 0000000..2786bed
--- /dev/null
+++ b/store/works/life/lanqiao-selection-match/cpp-build.rb
@@ -0,0 +1,6 @@
+#!/usr/bin/env ruby
+
+Dir.glob('./codes/*.cpp').each do |f|
+ output_file_name = f.sub('codes', 'build').gsub('.cpp', '')
+ `clang++ -std=c++11 #{f} -o #{output_file_name}`
+end