Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
3dbeef92
Commit
3dbeef92
authored
7 years ago
by
gejun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tools/make_all_examples and clean_all_examples for cmake
parent
50b8e999
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
clean_all_examples
tools/clean_all_examples
+2
-2
make_all_examples
tools/make_all_examples
+2
-2
No files found.
tools/clean_all_examples
View file @
3dbeef92
saved_pwd_before_making=$PWD
for file in `find
example tools -name Makefile
`; do
for file in `find
tools example -name CMakeLists.txt
`; do
cd $(dirname $file)
echo
echo "[$file]"
make -s clean
rm -rf build
cd $saved_pwd_before_making
done
This diff is collapsed.
Click to expand it.
tools/make_all_examples
View file @
3dbeef92
saved_pwd_before_making=$PWD
for file in `find tools example -name
Makefile
`; do
for file in `find tools example -name
CMakeFiles -type d -prune -o -name CMakeLists.txt -print
`; do
cd $(dirname $file)
echo
echo "[$file]"
if !
make -sj4
; then
if !
( rm -rf build && mkdir build && cd build && cmake .. && make -sj4 )
; then
exit 1
fi
cd $saved_pwd_before_making
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment