[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] SF.net SVN: quarks:[2661] Devel
- To: sc-dev@xxxxxxxxxxxxxxxx
- Subject: [sc-dev] SF.net SVN: quarks:[2661] Devel
- From: jrhb@xxxxxxxxxxxxxxxxxxxxx
- Date: Thu, 28 Nov 2013 12:02:55 +0000
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:Subject:To:From:MIME-Version:Date; bh=yutr2Pww7bupOmT9THc4h134lD3+gCAwHk9sJ/sRPxo=; b=WMyE+j9gCcx/jj36MK8bUz4dUygwv1tPdrgFItg54R0Ci9Nbyyn2NlGOJGYf+YIufLRJZiTw1qNBoFe35DlTlkx3K1yrNw9gsPtwYOFc0OVYUVR6Xi0WaokjobYlVz5sB41vvs63Am7AFz7XQd5yJr0k4jPTvLarpADzegSfFQc=;
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x; h=Content-Transfer-Encoding:Content-Type:Subject:To:From:MIME-Version:Date; bh=yutr2Pww7bupOmT9THc4h134lD3+gCAwHk9sJ/sRPxo=; b=NOT8b5pW+1+vHDZEwACBgNKl9ls25wtS3pnCqRA/QrcWRk006vi2erYjvgD+zigEAcjLG3ujR9YCOD6M8tQYY+zOHnWD+/9PQKWVfoIhyQlgTt609u5FK3sX7Q0Y5/Q6W0G1O6PByEGASpf+OYnrmNddSe8peQvZiIj6ZXLtuaQ=;
- List-id: SuperCollider developers mailing list <sc-devel.create.ucsb.edu>
- Reply-to: sc-dev@xxxxxxxxxxxxxxxx
- Sender: owner-sc-dev@xxxxxxxxxxxxxxxx
Revision: 2661
http://sourceforge.net/p/quarks/code/2661
Author: jrhb
Date: 2013-11-28 12:02:53 +0000 (Thu, 28 Nov 2013)
Log Message:
-----------
add Devel quark
Added Paths:
-----------
Devel/
Devel/extLanguageConfig.sc
Added: Devel/extLanguageConfig.sc
===================================================================
--- Devel/extLanguageConfig.sc (rev 0)
+++ Devel/extLanguageConfig.sc 2013-11-28 12:02:53 UTC (rev 2661)
@@ -0,0 +1,68 @@
+
+
+
++ LanguageConfig {
+
+ *clear {
+ this.includePaths.do(this.removeIncludePath(_));
+ this.excludePaths.do(this.removeExcludePath(_));
+ }
+
+ *add { |configFileName, dir|
+ var configFilePath = (dir ? Platform.userConfigDir) +/+ "sclang_conf_%.yaml".format(configFileName);
+ if(File.exists(configFilePath)) { ("Did not add configuration, it exists already in this path:" + configFilePath).warn; ^this };
+ LanguageConfig.store(configFilePath);
+ "\nNew config file has been written to:\n%\n".postf(configFilePath);
+ }
+
+ *switchDir { |folderName, excludeDir, includeDir|
+ var toInclude = includeDir +/+ folderName;
+ var toExclude = excludeDir +/+ folderName;
+ if(pathMatch(toInclude).isEmpty) {
+ Error("no directory found to which to link (% doesn't exist".format(toInclude)).throw;
+ } {
+ if(pathMatch(toExclude).isEmpty) {
+ Error("no directory found to which to link (% doesn't exist)".format(toExclude)).throw;
+ } {
+ this.addIncludePath(toInclude);
+ "excluded:\n%\n".postf(toExclude);
+ this.addExcludePath(toExclude);
+ "included:\n%\n".postf(toInclude);
+ }
+ }
+
+ }
+
+ *buildDir {
+ var i = Platform.classLibraryDir.find("/build/Install/");
+ if(i.isNil) {
+ Error("no build directory found in path: %)".format(Platform.classLibraryDir)).throw;
+ };
+ ^Platform.classLibraryDir.keep(i);
+ }
+
+ *makeDevelConfig { |configFileName|
+ var buildDir = this.buildDir;
+ this.switchDir("SCClassLibrary", Platform.resourceDir, buildDir);
+ this.switchDir("HelpSource", Platform.resourceDir, buildDir);
+ this.add(configFileName, Platform.userConfigDir)
+ }
+
+
+ /*
+ *makeStandaloneConfig { |configFileName|
+ this.clear;
+ this.addExcludePath(Platform.userExtensionDir);
+ this.addExcludePath(Platform.systemExtensionDir);
+ this.add(configFileName, Platform.resourceDir);
+ // s.options.ugenPluginsPath = Platform.resourceDir; // works only once: this needs to be written into startup file.
+ }
+ */
+ /*
+ LanguageConfig.makeStandaloneConfig("standaloneX");
+
+ */
+
+
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/