From 2a8c0d675bf69d2c16949379609a6e12053822e5 Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 3 Sep 2021 00:21:29 +1000 Subject: Simplify copying current. --- src/sledjchisl/sledjchisl.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') 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) static void copyOpenSim(char *t) { if (shellMeFail("rm -fr ", t)) E("Failed to rm!"); - if ((! qfile_exist(t)) && (! qfile_mkdir(t, S_IRWXU | S_IRGRP | S_IXGRP, true))) C("Unable to create path %s", t); +// if ((! qfile_exist(t)) && (! qfile_mkdir(t, S_IRWXU | S_IRGRP | S_IXGRP, true))) C("Unable to create path %s", t); // TODO - have to make sure it's all owned by opensimsc. - if (shellMeFail("cd %s; cp -lr %s/current/* -t %s ", scRoot, scRoot, t)) C("Failed to cp!"); - if (shellMeFail("cd %s; cp -lr %s/current/.git* -t %s ", scRoot, scRoot, t)) C("Failed to cp!"); - if (shellMeFail("cd %s; cp -lr %s/current/.nant -t %s ", scRoot, scRoot, t)) C("Failed to cp!"); - if (shellMeFail("cd %s; cp -lr %s/current/.hgignore -t %s ", scRoot, scRoot, t)) C("Failed to cp!"); + if (shellMeFail("cd %s; cp -al %s/current/ -t %s/ ", scRoot, scRoot, t)) C("Failed to cp!"); } static void runTests(char *tests[], char *title, char* file) -- cgit v1.1