Advertisement
Guest User

openwrt-zipit nightly build script

a guest
Jan 31st, 2016
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.77 KB | None | 0 0
  1. #!/bin/bash
  2. # Pull latest openwrt-zipit git and build it
  3.  
  4. ROOTDIR="/path/to/openwrt-zipit-root/"
  5. OPENWRTDIR="openwrt-zipit"
  6. PKGDIR1="openwrt-zipit-packages"
  7. PKGDIR2="openwrt-packages"
  8.  
  9. # Pull latest git
  10. echo "Syncing openwrt-zipit-packages with github"
  11. cd "$ROOTDIR$PKGDIR1"
  12. git pull
  13. echo "Syncing openwrt-packages with github"
  14. cd "$ROOTDIR$PKGDIR2"
  15. git pull
  16. echo "Syncing openwrt tree with github"
  17. cd "$ROOTDIR$OPENWRTDIR"
  18. git pull
  19.  
  20. # Update package list
  21. make package/symlinks V=99
  22. scripts/feeds install -a
  23. make defconfig
  24.  
  25. # Clean the bin dir if desired
  26. #rm -rf "$ROOTDIR$OPENWRTDIR/bin/pxa/*"
  27.  
  28. # Build
  29. echo "Building... (use 'tail -f $ROOTDIR$OPENWRTDIR/bin/pxa/build.log' for status)"
  30. make IGNORE_ERRORS=1 V=99 2>&1> "$ROOTDIR$OPENWRTDIR/bin/pxa/build.log"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement