blob: a262b8538211e7ae57fc7a5054160de0d15c97a2 [file] [log] [blame]
developer20d67712022-03-02 14:09:32 +08001#!/bin/sh
2
3# This script is used to remove all changes made by autobuild scripts which
4# allows autobuild scripts to be called again
5
6# ATTENTION: commit all changes you made before running this script otherwise
7# all changes will be lost!
8
9if [ ! -d target/linux ]; then
10 echo "This script must be called from the root directory of OpenWrt!"
11 exit 1
12fi
13
14git clean -f -d
15git checkout .
16rm -rf feeds/
17rm -rf package/feeds
18git -C package checkout .
19git -C package/mtk/applications/luci-app-mtk checkout .