diff options
author | onefang | 2021-09-03 00:39:31 +1000 |
---|---|---|
committer | onefang | 2021-09-03 00:39:31 +1000 |
commit | 24884909008a782703486e8da62c8f5824ece6c6 (patch) | |
tree | 978d5ab2ddf7ecb0caa27f3d94a2fbc427681a48 /src | |
parent | A little too simple, actually make the directory. (diff) | |
download | opensim-SC-24884909008a782703486e8da62c8f5824ece6c6.zip opensim-SC-24884909008a782703486e8da62c8f5824ece6c6.tar.gz opensim-SC-24884909008a782703486e8da62c8f5824ece6c6.tar.bz2 opensim-SC-24884909008a782703486e8da62c8f5824ece6c6.tar.xz |
Unsimplify failed cp experiment.
Diffstat (limited to 'src')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 61f2ee8..89c16fc 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -2023,7 +2023,10 @@ static void copyOpenSim(char *t) | |||
2023 | if (shellMeFail("rm -fr ", t)) E("Failed to rm!"); | 2023 | if (shellMeFail("rm -fr ", t)) E("Failed to rm!"); |
2024 | if ((! qfile_exist(t)) && (! qfile_mkdir(t, S_IRWXU | S_IRGRP | S_IXGRP, true))) C("Unable to create path %s", t); | 2024 | if ((! qfile_exist(t)) && (! qfile_mkdir(t, S_IRWXU | S_IRGRP | S_IXGRP, true))) C("Unable to create path %s", t); |
2025 | // TODO - have to make sure it's all owned by opensimsc. | 2025 | // TODO - have to make sure it's all owned by opensimsc. |
2026 | if (shellMeFail("cd %s; cp -al %s/current/ -t %s/ ", scRoot, scRoot, t)) C("Failed to cp!"); | 2026 | if (shellMeFail("cd %s; cp -al %s/current/* -t %s ", scRoot, scRoot, t)) C("Failed to cp!"); |
2027 | if (shellMeFail("cd %s; cp -al %s/current/.git* -t %s ", scRoot, scRoot, t)) C("Failed to cp!"); | ||
2028 | if (shellMeFail("cd %s; cp -al %s/current/.nant -t %s ", scRoot, scRoot, t)) C("Failed to cp!"); | ||
2029 | if (shellMeFail("cd %s; cp -al %s/current/.hgignore -t %s ", scRoot, scRoot, t)) C("Failed to cp!"); | ||
2027 | } | 2030 | } |
2028 | 2031 | ||
2029 | static void runTests(char *tests[], char *title, char* file) | 2032 | static void runTests(char *tests[], char *title, char* file) |