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

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

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

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

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

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

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