[Kstars-devel] KDE/kdeedu/kstars/kstars/data/tools

Akarsh Simha akarshsimha at gmail.com
Sat Jul 19 18:36:45 CEST 2008


SVN commit 834838 by asimha:

Reverting changes in data/tools that got accidentally commited.

CCMAIL: kstars-devel at kde.org



 M  +0 -16     Makefile  
 M  +2 -2      nomaddatatomysql.pl  


--- trunk/KDE/kdeedu/kstars/kstars/data/tools/Makefile #834837:834838
@@ -10,26 +10,17 @@
 
 MYSQL_CONFIG=/usr/bin/mysql_config
 KSTARS_MYSQL_DB_TO_BIN=./mysql2bin
-KSTARS_NOMAD_MYSQL_DB_TO_BIN=./nomadmysql2bin
 KSTARS_MYSQL_DB_DB=$(KSTARS_MYSQL_DB_USER)
 KSTARS_MYSQL_DB_TBL=tycho2
-KSTARS_NOMAD_MYSQL_DB_TBL=nomad_test # TODO: Change to nomad
 
 all: mysql2bin binfiletester
 
 mysql2bin: mysql2bin.c
 	$(CC) $(CFLAGS) `$(MYSQL_CONFIG) --cflags` $@.c $(LDFLAGS) `$(MYSQL_CONFIG) --libs` -o $@
 
-nomadmysql2bin: nomadmysql2bin.c
-	$(CC) $(CFLAGS) `$(MYSQL_CONFIG) --cflags` $@.c $(LDFLAGS) `$(MYSQL_CONFIG) --libs` -o $@
-
 binfiletester: binfiletester.c
 	$(CC) $(CFLAGS) $@.c $(LDFLAGS) -lm -o $@
 
-nomadbinfiletester: nomadbinfiletester.c
-	$(CC) $(CFLAGS) $@.c $(LDFLAGS) -lm -o $@
-
-
 clean:
 	-rm binfiletester mysql2bin
 	-rm ushf usdf nshf nsdf nf
@@ -41,12 +32,5 @@
 	cat nshf nsdf > ../shallowstars.dat
 	cat nf > ../starnames.dat
 	rm ushf usdf nshf nsdf nf
-
-nomaddatafiles: nomadmysql2bin
-	echo "If this step hangs, please reduce the value of MYSQL_STARS_PER_QUERY in mysql2bin.c and try again."
-	./nomadmysql2bin $(KSTARS_MYSQL_DB_USER) $(KSTARS_MYSQL_DB_PASS) usdf ushf $(KSTARS_MYSQL_DB_DB) $(KSTARS_NOMAD_MYSQL_DB_TBL)
-	cat ushf usdf > nomad_test,dat    # TODO: Change
-	rm ushf usdf
-
 install:
 # Install nothing
--- trunk/KDE/kdeedu/kstars/kstars/data/tools/nomaddatatomysql.pl #834837:834838
@@ -63,7 +63,7 @@
 my $tbl_trunc_query = qq/TRUNCATE TABLE `$db_tbl`/;
 
 # For the HTMesh
-my $level = 6;
+my $level = 3;
 
 # Create a new HTMesh, of level $level
 my $mesh = new HTMesh($level);
@@ -77,7 +77,7 @@
 $dbh->do($db_query);
 $dbh->do($db_select_query);
 $dbh->do($tbl_query);
-#$dbh->do($tbl_trunc_query);                 # Avoid truncating the table, because we might want to process split files
+$dbh->do($tbl_trunc_query);
 $dbh->commit();
 
 if( $VERBOSE ) {


More information about the Kstars-devel mailing list