kstreamripper
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

unpack_local_scons.sh 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #!/bin/sh
  2. BOLD="\033[1m"
  3. RED="\033[91m"
  4. GREEN="\033[92m"
  5. YELLOW="\033[93m"
  6. CYAN="\033[96m"
  7. NORMAL="\033[0m"
  8. #bunzip2 scons-mini.tar.bz2
  9. #tar xvf scons-mini.tar
  10. # if kde is there a recent tar should be too
  11. tar xjvf scons-mini.tar.bz2
  12. cat > Makefile << EOF
  13. ## Makefile automatically generated by unpack_local_scons.sh
  14. ### To use scons when installed globally use
  15. #SCONS=scons
  16. ### To run the local version instead, define
  17. SCONS=./scons
  18. # scons : compile
  19. # scons -c : clean
  20. # scons install : install
  21. # scons -c install : uninstall and clean
  22. # default target : use scons to build the programs
  23. all:
  24. \$(SCONS) -Q
  25. ### There are several possibilities to help debugging :
  26. # scons --debug=explain, scons --debug=tree ..
  27. #
  28. ### To optimize the runtime, use
  29. # scons --max-drift=1 --implicit-deps-unchanged
  30. debug:
  31. \$(SCONS) -Q --debug=tree
  32. clean:
  33. \$(SCONS) -c
  34. install:
  35. \$(SCONS) install
  36. uninstall:
  37. \$(SCONS) -c install
  38. ## this target creates a tarball of the project
  39. dist:
  40. \$(SCONS) dist
  41. EOF
  42. echo ""
  43. echo -e $GREEN"A minimum scons distribution has been unpacked right here"
  44. echo -e $GREEN"you can now run : "$NORMAL
  45. echo -e $BOLD"./scons"$NORMAL
  46. echo -e $BOLD"./scons install$NORMAL (as root probably)"