script-helper 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # aria2 - The high speed download utility
  2. #
  3. # Copyright (C) 2012 Tatsuhiro Tsujikawa
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  18. #
  19. # In addition, as a special exception, the copyright holders give
  20. # permission to link the code of portions of this program with the
  21. # OpenSSL library under certain conditions as described in each
  22. # individual source file, and distribute linked combinations
  23. # including the two.
  24. # You must obey the GNU General Public License in all respects
  25. # for all of the code used other than OpenSSL. If you modify
  26. # file(s) with this exception, you may extend this exception to your
  27. # version of the file(s), but you are not obligated to do so. If you
  28. # do not wish to do so, delete this exception statement from your
  29. # version. If you delete this exception statement from all source
  30. # files in the program, then also delete it here.
  31. get_version () {
  32. VERSION=`grep AC_INIT configure.ac | sed '/AC_INIT/ s/AC_INIT(\[aria2\],\[\([^]]\+\)\],.*/\1/'`
  33. echo "Version: $VERSION"
  34. }