Skip to content

Commit

Permalink
added converter script
Browse files Browse the repository at this point in the history
  • Loading branch information
Grumbel committed Nov 22, 2002
1 parent d363622 commit ae56d38
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
2 changes: 1 addition & 1 deletion construo_main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ ConstruoMain::main (int argc, char* argv[])
}

graphic_context->draw_string (10, 20, "..:: Construo V"VERSION" ::..");
graphic_context->draw_string (10, 32, "=============================");
graphic_context->draw_string (10, 32, "=========================");

graphic_context->draw_string (400, 20, " [1-9] - quick save");
graphic_context->draw_string (400, 32, "[shift 1-9] - quick load");
Expand Down
23 changes: 23 additions & 0 deletions examples/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Construo - A wire-frame construction game
## Copyright (C) 2002 Ingo Ruhnke <grumbel@gmx.de>
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License
## as published by the Free Software Foundation; either version 2
## of the License, or (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

pkgdatadir = $(datadir)/games/@PACKAGE@/examples/

pkgdata_DATA = *.construo
EXTRA_DIST=$(pkgdata_DATA)

# EOF #
27 changes: 27 additions & 0 deletions xml2sexpr.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/sh

sed "s/<?xml version=\"1.0\"?>//" | \
sed "s/<spring>/(spring /" | \
sed "s/<\/spring>/)/" | \
sed "s/<first>/(first /" | \
sed "s/<\/first>/)/" | \
sed "s/<second>/(second /" | \
sed "s/<\/second>/)/" | \
sed "s/<construo-scene>/(construo-scene/" | \
sed "s/<\/construo-scene>/)/" | \
sed "s/<cl-vector>//g" | \
sed "s/<\/cl-vector>//g" | \
sed "s/<spring-list>/(springs /" | \
sed "s/<\/spring-list>/)/" | \
sed "s/<[xyz]>/ /g" | \
sed "s/<\/[xyz]>/ /g" | \
sed "s/<position>/(pos /g" | \
sed "s/<\/position>/) /g" | \
sed "s/<velocity>/(velocity /g" | \
sed "s/<\/velocity>/) /g" | \
sed "s/<particle-list>/(particles /" | \
sed "s/<\/particle-list>/)/" | \
sed "s/<\/particle>/)/" | \
sed "s/<particle id=\"\([0-9]*\)\">/(particle (id \1) /"

# EOF #

0 comments on commit ae56d38

Please sign in to comment.