3DMIN / MeTA

a performance framework for SuperCollider
0 stars 0 forks source link

MeTAInstall.make does not create project directory #2

Closed patrickdupuis closed 6 years ago

patrickdupuis commented 8 years ago

Trying out the MeTA Quark. MeTAInstall.makedoes not seem to work.

MeTAInstall.make("~/projects/MeTA/", "MeTA_blank");

posts:

// Open your new MeTA project dir with: "~/projects/MeTA/MeTA_blank".openOS;

-> MeTAInstall RESULT = 1

patrickdupuis commented 8 years ago

Trying in command line sclang, I get this error message:

ls: invalid option -- 'P' Try 'ls --help' for more information. // Open your new MeTA project dir with: "~/projects/MeTA/MeTA_blank".openOS;

-> MeTAInstall sc3> install: invalid option -- 'B' Try 'install --help' for more information. RESULT = 1

patrickdupuis commented 8 years ago

It seems to work now on my system after modifying some of the unix commands :

line 4 var listCmd = "ls -1Abp";

and both of the install -B commands:

    *copyProto { |projectDir, protoDir, protos|
        var stamp = Date.getDate.stamp;
        protos.do { |proto|
            ("file -b %".format(protoDir +/+ proto).unixCmdGetStdOut == "directory\n").if({
                "install -d %".format(projectDir +/+ proto).unixCmd;
            }, {
                "install -bC % %".format(
                    protoDir +/+ proto,
                    projectDir +/+ proto
                ).unixCmd;
            })
        };

        // write README.md as README-MeTA.md
        "install -bC % %".format(
            protoDir.dirname +/+ "README.md",
            projectDir +/+ "README-MeTA.md"
        ).unixCmd;
    }