moved files around

This commit is contained in:
ejcoumans
2006-05-25 19:18:29 +00:00
commit e061ec1ebf
1024 changed files with 349445 additions and 0 deletions

42
Extras/ode/tools/build4 Normal file
View File

@@ -0,0 +1,42 @@
#!/bin/sh
#
# build all four precision/release configurations and log the build messages
# (used for debugging).
PLATFORM=unix-gcc
SETTINGS=config/user-settings
if [ ! -f ode/src/ode.cpp ]; then
echo "run this from the ODE root directory"
exit 1
fi
function build() {
echo -e "$PRECISION $MODE\n\n" >> BUILD_LOG
cat <<END > $SETTINGS
PLATFORM=$PLATFORM
PRECISION=$PRECISION
BUILD=$MODE
END
make clean
make >> BUILD_LOG 2>&1
echo -e "\n\n---------------------------------------------\n\n" >> BUILD_LOG
}
echo > BUILD_LOG
PRECISION=SINGLE
MODE=debug
build
PRECISION=SINGLE
MODE=release
build
PRECISION=DOUBLE
MODE=debug
build
PRECISION=DOUBLE
MODE=release
build
make clean
rm -f $SETTINGS

View File

@@ -0,0 +1,86 @@
@echo off
rem build all four precision/release configurations and log the build messages
rem (used for debugging).
setlocal
set PLATFORM=cygwin
set SETTINGS=config\user-settings
echo SINGLE debug > BUILD_LOG
echo PLATFORM=%PLATFORM%> %SETTINGS%
echo PRECISION=SINGLE>> %SETTINGS%
echo BUILD=debug>> %SETTINGS%
make clean
make >> BUILD_LOG
echo --------------------------------------------- >> BUILD_LOG
echo DOUBLE debug >> BUILD_LOG
echo PLATFORM=%PLATFORM%> %SETTINGS%
echo PRECISION=DOUBLE>> %SETTINGS%
echo BUILD=debug>> %SETTINGS%
make clean
make >> BUILD_LOG
echo --------------------------------------------- >> BUILD_LOG
echo SINGLE release >> BUILD_LOG
echo PLATFORM=%PLATFORM%> %SETTINGS%
echo PRECISION=SINGLE>> %SETTINGS%
echo BUILD=release>> %SETTINGS%
make clean
make >> BUILD_LOG
echo --------------------------------------------- >> BUILD_LOG
echo DOUBLE release >> BUILD_LOG
echo PLATFORM=%PLATFORM%> %SETTINGS%
echo PRECISION=DOUBLE>> %SETTINGS%
echo BUILD=release>> %SETTINGS%
make clean
make >> BUILD_LOG
echo --------------------------------------------- >> BUILD_LOG
make clean
del %SETTINGS%

View File

@@ -0,0 +1,45 @@
#!/bin/sh
VER=0.03
# VER=`date +%y%m%d`
if [ ! -f ode/src/ode.cpp ]; then
echo "run this from the ODE root directory"
exit 1
fi
ODE_DIR=`pwd`
cd /tmp
if [ -d /tmp/ode-$VER ]; then
echo "remove /tmp/ode-$VER first"
exit 1
fi
mkdir /tmp/ode-$VER
cp -av $ODE_DIR/* /tmp/ode-$VER
find /tmp/ode-$VER -type d -name CVS -exec rm -rf {} \; -print
find /tmp/ode-$VER -type f -name *~ -exec rm -f {} \; -print
rmdir /tmp/ode-$VER/build
cd /tmp/ode-$VER
make clean
cp config/user-settings.example config/user-settings
cd ode/doc
./doccer ode.doc > ode.html
cd /tmp/ode-$VER
echo -e "\n\nMake any modifications you want, then exit the shell:"
bash
cd /tmp
tar cfvz ode-$VER.tgz ode-$VER
rm -rf /tmp/ode-$VER
echo -e "\ntype <return> to exit or 'c' to copy to q12"
read Q
if [ $Q ]; then
echo copying...
scp1 ode-$VER.tgz q12.org:~/q12/ode/release/
fi

View File

@@ -0,0 +1,11 @@
#!/usr/bin/perl
$a = join ('',<STDIN>);
$a =~ s/\\\n/ /g; # join continued lines
$a =~ s/(^\S+:)/$ARGV[0]$1/gm; # put prefix in front of rules
$a =~ s/\s+\/\S+/ /g; # remove absolute path dependencies
$a =~ s/\s+\n/\n/g; # remove whitespace at end of lines
$a =~ s/[ \t]+/ /g; # clean up interior whitespace
$a =~ s/ / \\\n /g; # put back line continuations
print $a;

40
Extras/ode/tools/rm.c Normal file
View File

@@ -0,0 +1,40 @@
/*
this is a simple replacement for the windows command line 'del' command.
this is more convenient to use in the ODE makefile because of the following
differences from 'del' :
* filenames may contain forward slashes.
* wildcard expansion is not performed.
* it is called 'rm', just like in unix.
*/
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char **argv)
{
int i;
for (i=1; i<argc; i++) unlink (argv[i]);
return 0;
}

BIN
Extras/ode/tools/rm.exe Normal file

Binary file not shown.