mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-30 17:40:16 +02: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:
parent
f2065c4172
commit
1ceee39ceb
@ -29,9 +29,7 @@
|
||||
#include <asm/jz4740.h>
|
||||
#include "jz_mmc.h"
|
||||
|
||||
#define CFG_MMC_BASE 0x80600000
|
||||
static int sd2_0 = 0;
|
||||
static uchar mmc_buf[1024];
|
||||
static int mmc_ready = 0;
|
||||
static int use_4bit; /* Use 4-bit data bus */
|
||||
/*
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user