build.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # This file is part of Tabannusi, a continuous build system.
  2. # Copyright (c) 2016 rosa <rosa33@openmailbox.org>
  3. # Copyright (c) 2016 ali abdul ghani <alimiracle@riseup.net>
  4. # Tabannusi is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. # Tabannusi is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with Tabannusi. If not, see <http://www.gnu.org/licenses/>.
  14. list=`ls`
  15. if echo "$list" | grep -q "ant.properties"; then
  16. ant release
  17. exit
  18. fi
  19. if echo "$list" | grep -q "Dockerfile"; then
  20. docker build `pwd`
  21. exit
  22. fi
  23. if echo "$list" | grep -q "Cargo.toml"; then
  24. cargo build
  25. exit
  26. fi
  27. if echo "$list" | grep -q "autogen.sh"; then
  28. chmod +x autogen.sh
  29. ./autogen.sh
  30. fi
  31. if echo "$list" | grep -q "configure"; then
  32. chmod +x configure
  33. ./configure
  34. fi
  35. if echo "$list" | grep -q "Makefile"; then
  36. /etc/tabannusi/make.sh
  37. exit
  38. fi
  39. echo "I Can't Find Way to build the code"