Conscript-setup 987 B

12345678910111213141516171819202122232425262728293031323334
  1. # setup
  2. Import qw( INSTALL_BASEDIR );
  3. $env = new cons(
  4. # add this path so setup script finds brandelf
  5. ENV => { PATH => $ENV{PATH} . ":" . $ENV{HOME} . "./usr/bin", },
  6. );
  7. sub launch {
  8. # need to get the correct version (i.e. from SP source)
  9. $version = `cat game/q_shared.h | grep Q3_VERSION`;
  10. chomp $version;
  11. $version =~ s/.*Q3\ (.*)\"/$1/;
  12. print("version: $version\n");
  13. system("cd unix ; ./build_setup.sh $version");
  14. return 1;
  15. }
  16. # no dependency to PB, we get it directly from the tree and not in install/
  17. Depends $env "$INSTALL_BASEDIR/foo",
  18. "$INSTALL_BASEDIR/linuxq3ded",
  19. "$INSTALL_BASEDIR/linuxquake3-smp",
  20. "$INSTALL_BASEDIR/linuxquake3";
  21. # during developement phase, we generate and copy the pk3 on the fly
  22. # then those should move to the media tree
  23. # those have been finalized and moved to the media tree
  24. # "$INSTALL_BASEDIR/baseq3/pak8.pk3",
  25. # "$INSTALL_BASEDIR/missionpack/pak3.pk3";
  26. Command $env "$INSTALL_BASEDIR/foo", "[perl] &launch()";