From e33b6e2f5b1008362943344186667240278c223f Mon Sep 17 00:00:00 2001 From: Jim Saxton Date: Thu, 9 Feb 2017 18:43:08 -0800 Subject: [PATCH] update the IDE to refresh the BuildFactory files on each launch making updating yab and yab-IDE easier. --- yab-IDE/src/yab-IDE.yab | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/yab-IDE/src/yab-IDE.yab b/yab-IDE/src/yab-IDE.yab index b3db126..a138d26 100755 --- a/yab-IDE/src/yab-IDE.yab +++ b/yab-IDE/src/yab-IDE.yab @@ -3868,6 +3868,15 @@ system("mkdir ~/config/settings/yab") y=system("ls "+DataDir$+"/yab_work/BuildFactory > /dev/null") y=y+system("ls "+DataDir$+"/yab_work/Programs > /dev/null") +system("cp -ur "+ideDir$+"/BuildFactory "+DataDir$+"/yab_work") +handle=open(DataDir$+"/yab_work/BuildFactory/srcfiles","r") + + while(not eof(#handle)) + input #handle a$ + system("cp -u "+ideDir$+"/src/"+a$+" "+DataDir$+"/yab_work/BuildFactory/"+a$) + end while + close handle + system("cp -ur "+ideDir$+"/src/column "+DataDir$+"/yab_work/BuildFactory") if x=0 or y>0 then