OSDN Git Service
(root)
/
proj16
/
16.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9db56b5
)
fix y.sh script
author
Jonathan Campbell
<jonathan@castus.tv>
Fri, 25 Mar 2016 03:46:22 +0000
(20:46 -0700)
committer
Jonathan Campbell
<jonathan@castus.tv>
Fri, 25 Mar 2016 03:46:22 +0000
(20:46 -0700)
y.sh
patch
|
blob
|
history
diff --git
a/y.sh
b/y.sh
index
19ed62f
..
40b4278
100755
(executable)
--- a/
y.sh
+++ b/
y.sh
@@
-1,7
+1,16
@@
+#!/bin/bash
+
+# run this from the top dir of the project
+topdir=`pwd`
+
+# force rebuild of the project
wmake clean
-cd src/lib/doslib
+# force rebuild of doslib, make sure the latest is checked out from master
+cd "$topdir/src/lib/doslib" || exit 1
git pull
git checkout master
git pull
-. ./buildall.sh clean
-. ./wbuild.sh
+./buildall.sh clean
+# back to top dir, build project again
+cd "$topdir" || exit 1
+./wbuild.sh