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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user