Browse Source

added license.

Nicolas Cannasse 19 years ago
parent
commit
8924b4c845

+ 2 - 0
std/tools/haxelib/Datas.hx

@@ -21,6 +21,7 @@ typedef ProjectInfos = {
 	var desc : String;
 	var website : String;
 	var owner : String;
+	var license : String;
 	var curversion : String;
 	var versions : Array<VersionInfos>;
 }
@@ -123,6 +124,7 @@ class Datas {
 			desc : p.node.description.data,
 			version : p.node.version.att.name,
 			versionComments : p.node.version.data,
+			license : p.att.license,
 			dependencies : deps,
 		}
 	}

+ 1 - 0
std/tools/haxelib/Main.hx

@@ -165,6 +165,7 @@ class Main {
 		print("Name: "+inf.name);
 		print("Desc: "+inf.desc);
 		print("Website: "+inf.website);
+		print("License: "+inf.license);
 		print("Owner: "+inf.owner);
 		print("Version: "+inf.curversion);
 		print("Releases: ");

+ 2 - 0
std/tools/haxelib/SiteApi.hx

@@ -29,6 +29,7 @@ class SiteApi {
 			versions : versions,
 			owner : p.owner.name,
 			website : p.website,
+			license : p.license,
 		};
 	}
 
@@ -99,6 +100,7 @@ class SiteApi {
 			p.name = infos.project;
 			p.description = infos.desc;
 			p.website = infos.website;
+			p.license = infos.license;
 			p.owner = u;
 			p.insert();
 			neko.FileSystem.deleteFile(path);

+ 1 - 0
std/tools/haxelib/SiteDb.hx

@@ -78,6 +78,7 @@ class SiteDb {
 				id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
 				owner INTEGER NOT NULL,
 				name VARCHAR(32) NOT NULL UNIQUE,
+				license VARCHAR(20) NOT NULL,
 				description TEXT NOT NULL,
 				website VARCHAR(100) NOT NULL,
 				version INT