Initial commit of "Rocket Workbench".
Taken from sources in CVS at:
https://sourceforge.net/projects/rocketworkbench/
Sources extracted in two steps:
1. Pull entire project tree into a subdir "rwb" via "rsync":
rsync -a a.cvs.sourceforge.net::cvsroot/rocketworkbench/ rwb/.
2. Export sources:
export CVSROOT=$(pwd)/rwb
SUBDIRS="analyser cpropep cpropep-web CVSROOT data libcompat libcpropep libnum libsimulation libthermo prop rocketworkbench rockflight"
mkdir rwbx; cd rwbx
cvs export -D now ${SUBDIRS}
After this (and some backups for safety), the directory content was
added to a Git repo:
git init .
git add *
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
ROOT = ../../..
|
||||
include $(ROOT)/config/presrc.mk
|
||||
@@ -0,0 +1,3 @@
|
||||
ROOT = ../../../..
|
||||
include $(ROOT)/config/makedef
|
||||
include $(ROOT)/config/exesrc.mk
|
||||
@@ -0,0 +1,4 @@
|
||||
LIB = -lconvert -lm
|
||||
PROG = test-libconvert
|
||||
OBJS = test.o
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "libconvert/include/convert.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
|
||||
double val = 1.0;
|
||||
double new;
|
||||
|
||||
if (!convert(&val, "lb", "kg", &new))
|
||||
printf("Converted value: %f\n", new);
|
||||
else
|
||||
printf("Abort.\n");
|
||||
return 0;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user