瀏覽代碼

Looks like the TPC-DS kit was changed, move the tools directory down if it's nested in a "DS Tools" directory.

Carter Shanklin 11 年之前
父節點
當前提交
634af452b4
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      tpcds-gen/Makefile

+ 3 - 1
tpcds-gen/Makefile

@@ -16,7 +16,9 @@ target/lib/dsdgen.jar: target/tools/dsdgen
 	cd target/; mkdir -p lib/; ( jar cvf lib/dsdgen.jar tools/ || gjar cvf lib/dsdgen.jar tools/ )
 
 target/tools/dsdgen: target/tpcds_kit.zip
-	test -d target/tools/ || (cd target; unzip tpcds_kit.zip; cd tools; cat ../../patches/all/*.patch | patch -p0 )
+	test -d target/tools/ || (cd target; unzip tpcds_kit.zip)
+	test -d target/tools/ || (cd target; mv "DS Tools/tools" tools)
+	cd target/tools; cat ../../patches/all/*.patch | patch -p0
 	cd target/tools; cat ../../patches/${MYOS}/*.patch | patch -p1
 	cd target/tools; make clean; make dsdgen