developer | 20d6771 | 2022-03-02 14:09:32 +0800 | [diff] [blame] | 1 | #!/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 | |
| 9 | if [ ! -d target/linux ]; then |
| 10 | echo "This script must be called from the root directory of OpenWrt!" |
| 11 | exit 1 |
| 12 | fi |
| 13 | |
| 14 | git clean -f -d |
| 15 | git checkout . |
| 16 | rm -rf feeds/ |
| 17 | rm -rf package/feeds |
| 18 | git -C package checkout . |
| 19 | git -C package/mtk/applications/luci-app-mtk checkout . |