[Lunar-commits] r17383 - moonbase/trunk/games/asteroids3D

Florin Braescu florin at lunar-linux.org
Sat Nov 19 18:05:15 UTC 2005


Author: florin
Date: 2005-11-19 18:05:14 +0000 (Sat, 19 Nov 2005)
New Revision: 17383

Modified:
   moonbase/trunk/games/asteroids3D/BUILD
Log:
rework the BUILD a bit. happy now sofar? :)


Modified: moonbase/trunk/games/asteroids3D/BUILD
===================================================================
--- moonbase/trunk/games/asteroids3D/BUILD	2005-11-19 06:54:59 UTC (rev 17382)
+++ moonbase/trunk/games/asteroids3D/BUILD	2005-11-19 18:05:14 UTC (rev 17383)
@@ -2,36 +2,21 @@
 
   sedit "s:-lGLU::" Makefile  && 
 
-  mv  texture.c texture.c.original                                           &&
-  cat texture.c.original                                                      |
-  sed "s/ast_tex0.ppm/\/usr\/share\/games\/asteroids3D\/ast_tex0.ppm/"        |
-  sed "s/ast_tex1.ppm/\/usr\/share\/games\/asteroids3D\/ast_tex1.ppm/"        |
-  sed "s/ast_tex2.ppm/\/usr\/share\/games\/asteroids3D\/ast_tex2.ppm/"        |
-  sed "s/ast_tex3.ppm/\/usr\/share\/games\/asteroids3D\/ast_tex3.ppm/"        |
-  sed "s/ast_tex4.ppm/\/usr\/share\/games\/asteroids3D\/ast_tex4.ppm/"        |
-  sed "s/ast_tex5.ppm/\/usr\/share\/games\/asteroids3D\/ast_tex5.ppm/"        |
-  sed "s/nebula_tex0.ppm/\/usr\/share\/games\/asteroids3D\/nebula_tex0.ppm/"  |
-  sed "s/nebula_tex1.ppm/\/usr\/share\/games\/asteroids3D\/nebula_tex1.ppm/"  |
-  sed "s/nebula_tex2.ppm/\/usr\/share\/games\/asteroids3D\/nebula_tex2.ppm/"  |
-  sed "s:contrib/nebula_tex3.ppm:/usr\/share\/games\/asteroids3D\/nebula_tex3.ppm:" |
-  sed "s/torp_tex0.ppm/\/usr\/share\/games\/asteroids3D\/torp_tex0.ppm/" > texture.c
+  cp texture.c texture.c.original  &&
+  sedit "s:contrib/nebula:nebula:" texture.c  &&
+  sedit "s:\(torp_tex0.ppm\):/usr\/share\/games\/asteroids3D/\1:" texture.c     &&
+  sedit "s:\(ast_tex[0-9].ppm\):/usr/share/games/asteroids3D/\1:" texture.c     &&
+  sedit "s:\(nebula_tex[0-9].ppm\):/usr/share/games/asteroids3D/\1:" texture.c  &&
 
-  mv  sound.c sound.c.original                                               &&
-  cat sound.c.original                                                        |
-  sed "s/ast_snd0.ub/\/usr\/share\/games\/asteroids3D\/ast_snd0.ub/"          |
-  sed "s/ast_snd1.ub/\/usr\/share\/games\/asteroids3D\/ast_snd1.ub/"          |
-  sed "s/ast_snd2.ub/\/usr\/share\/games\/asteroids3D\/ast_snd2.ub/"          |
-  sed "s/ast_snd3.ub/\/usr\/share\/games\/asteroids3D\/ast_snd3.ub/"          |
-  sed "s/ast_snd4.ub/\/usr\/share\/games\/asteroids3D\/ast_snd4.ub/"          |
-  sed "s/ast_snd5.ub/\/usr\/share\/games\/asteroids3D\/ast_snd5.ub/"          |
-  sed "s/coll_snd.ub/\/usr\/share\/games\/asteroids3D\/coll_snd.ub/"          |
-  sed "s/ta_snd.ub/\/usr\/share\/games\/asteroids3D\/ta_snd.ub/"              |
-  sed "s/tf_snd.ub/\/usr\/share\/games\/asteroids3D\/tf_snd.ub/"  >  sound.c
+  cp sound.c sound.c.original  &&
+  sedit "s:\(ta_snd.ub\):/usr/share/games/asteroids3D/\1:" sound.c        &&
+  sedit "s:\(tf_snd.ub\):/usr/share/games/asteroids3D/\1:" sound.c        &&
+  sedit "s:\(coll_snd.ub\):/usr/share/games/asteroids3D/\1:" sound.c      &&
+  sedit "s:\(ast_snd[0-9].ub\):/usr/share/games/asteroids3D/\1:" sound.c  &&
 
-
-  make                                   &&
-  prepare_install                        &&
-  cp asteroids3D /usr/games              &&
+  make                       &&
+  prepare_install            &&
+  cp asteroids3D /usr/games  &&
   if [ ! -d /usr/share/games/asteroids3D ]; then
     mkdir /usr/share/games/asteroids3D
   fi                                     &&



More information about the Lunar-commits mailing list