diff options
author | onefang | 2021-09-03 00:21:29 +1000 |
---|---|---|
committer | onefang | 2021-09-03 00:21:29 +1000 |
commit | 2a8c0d675bf69d2c16949379609a6e12053822e5 (patch) | |
tree | 238c041f1f183e8152a96b1a489f14de1d1cf8e2 /src/sledjchisl | |
parent | Maybe chowning things after sledjchisl build will help? (diff) | |
download | opensim-SC-2a8c0d675bf69d2c16949379609a6e12053822e5.zip opensim-SC-2a8c0d675bf69d2c16949379609a6e12053822e5.tar.gz opensim-SC-2a8c0d675bf69d2c16949379609a6e12053822e5.tar.bz2 opensim-SC-2a8c0d675bf69d2c16949379609a6e12053822e5.tar.xz |
Simplify copying current.
Diffstat (limited to 'src/sledjchisl')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 5bd864c..6a1800e 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -2021,12 +2021,9 @@ static int filterARs(struct dirtree *node) | |||
2021 | static void copyOpenSim(char *t) | 2021 | static void copyOpenSim(char *t) |
2022 | { | 2022 | { |
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 -lr %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 -lr %s/current/.git* -t %s ", scRoot, scRoot, t)) C("Failed to cp!"); | ||
2028 | if (shellMeFail("cd %s; cp -lr %s/current/.nant -t %s ", scRoot, scRoot, t)) C("Failed to cp!"); | ||
2029 | if (shellMeFail("cd %s; cp -lr %s/current/.hgignore -t %s ", scRoot, scRoot, t)) C("Failed to cp!"); | ||
2030 | } | 2027 | } |
2031 | 2028 | ||
2032 | static void runTests(char *tests[], char *title, char* file) | 2029 | static void runTests(char *tests[], char *title, char* file) |