Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nfer/crontab_android-4.2.1_r1.sh
my crontab script to update android-4.2.1 code and build all
https://github.com/nfer/crontab_android-4.2.1_r1.sh
Last synced: 7 days ago
JSON representation
my crontab script to update android-4.2.1 code and build all
- Host: GitHub
- URL: https://github.com/nfer/crontab_android-4.2.1_r1.sh
- Owner: nfer
- Created: 2015-02-02T07:26:37.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-12T14:02:21.000Z (almost 10 years ago)
- Last Synced: 2023-08-16T05:34:05.164Z (over 1 year ago)
- Language: Shell
- Size: 152 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# crontab_android-4.2.1_r1.sh
my crontab script to update android-4.2.1 code and build all## get svn version(both HEAD and BASE)
```Bash
HEAD_VER=`svn log -r HEAD | awk '{if(NR==2)print $1}' | cut -b 2-`
BASE_VER=`svn log -r BASE | awk '{if(NR==2)print $1}' | cut -b 2-`
```
## update code and revert modification
```Bash
svn up --force > $BUILD_LOG
svn st -q | grep ^M | grep -v $NONEED_TO_REVERT | awk '{print $2}' | xargs -i svn revert {} >> $BUILD_LOG
```
## envsetup and build all
```Bash
source build/envsetup.sh >> $BUILD_LOG
make >> $BUILD_LOG 2>& 1
```