swi_main.pl 1010 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/perl
  2. #
  3. # Software Index, Copyright 2010, Software Index Project Team
  4. # Link: http://swi.sourceforge.net
  5. #
  6. # This file is part of Software Index Tool.
  7. #
  8. # Software Index is free software: you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation, version 3 of the License.
  11. #
  12. # Software Index is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with Software Index. If not, see <http://www.gnu.org/licenses/>.
  19. #
  20. use strict;
  21. use Cwd qw(abs_path);
  22. $0 =~ m/(.*)swi_main.pl$/;
  23. my $globalRootDirectory = abs_path($1);
  24. push(@INC, "$globalRootDirectory/lib");
  25. require SWI::Launcher;
  26. exit swiLaunch($globalRootDirectory, @ARGV);