1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

cleanup scripts/build a little. make it save un-commit stuff by git stash

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
Xiangfu Liu
2010-10-22 15:09:16 +08:00
parent f2065c4172
commit 1ceee39ceb
2 changed files with 6 additions and 6 deletions

View File

@@ -32,8 +32,9 @@ if [ -f "config" ]; then
fi
echo "This script will move previous builds to bak/!"
echo "This script will reset modifications you made"
echo " to files which are part of the repository!"
echo "This script will compile base on last commit"
echo " your modifications will backup by git stash"
echo " those modifications will apply again after compile"
echo "This script comes without any kind of warranty!"
echo " "
echo "Are you brave, dude? [NO/yes]"
@@ -58,8 +59,7 @@ mv .config config
mkdir xburst
echo "updating git repo..."
git diff > bak/modify_${DATE_TIME}.patch
git checkout -f
git stash
git checkout tracking_backfire
git pull > /dev/null
if [ "$?" != "0" ]; then
@@ -122,6 +122,8 @@ if [ "$?" != "0" ]; then
exit 1
fi
git stash pop
cp .config xburst/config
cp bin/xburst/* xburst/ 2>/dev/null
mkdir xburst/files