crossgcc-helper 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #!/bin/bash
  2. # Copyright (C) 2016 Paul Kocialkowski <contact@paulk.fr>
  3. #
  4. # This program 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. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. crossgcc_tarballs() {
  17. local sources_path=$( project_sources_path "$project" "$repository" "$@" )
  18. local install_path="$sources_path/util/crossgcc/tarballs/"
  19. local tarballs=$( ls "$sources_path/util/crossgcc/sum" | sed "s/.cksum$//" )
  20. echo "$tarballs"
  21. }
  22. crossgcc_tarball_sources_path() {
  23. local tarball=$1
  24. local tarball_sources_path="$root/$SOURCES/$tarball"
  25. echo "$tarball_sources_path"
  26. }
  27. crossgcc_tarball_install_path() {
  28. local tarball=$1
  29. shift
  30. local sources_path=$( project_sources_path "$project" "$repository" "$@" )
  31. local install_path="$sources_path/util/crossgcc/tarballs/"
  32. local tarball_install_path="$install_path/$tarball"
  33. echo "$tarball_install_path"
  34. }
  35. crossgcc_tarball_release_path() {
  36. local tarball=$1
  37. shift
  38. local release_path=$( project_release_path "$project" "$SOURCES" "$@" )
  39. local tarball_release_path="$release_path/$tarball"
  40. echo "$tarball_release_path"
  41. }