// konoha status script
OUT <<< "Konoha Version:" + $konoha.version <<< EOL;
OUT <<< $konoha.bin.path <<< EOL;

void dumpInstalledPackages(String path) {
	OUT <<< "Installed Packages at " + path <<< EOL;
	installedPackages = System.exec("ls " + path).split("\n");
	for (i=0; i < |installedPackages|; i++) {
		OUT <<< "	" + installedPackages[i] <<< EOL;
	}
}

dumpInstalledPackages($konoha.package.path);
dumpInstalledPackages($user.package.path);


OUT <<< "For bug reporting instructions, please see:" <<< EOL;
OUT <<< "URL: http://code.google.com/p/konoha/issues/list" <<< EOL;
