From 50fa6757092fbcab66b13e17c922389b47316e20 Mon Sep 17 00:00:00 2001 From: axelvonkamp Date: Mon, 29 Jan 2024 13:15:08 +0100 Subject: [PATCH] include StrainDesign files in the releases --- create_cnapy_projects_zip.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/create_cnapy_projects_zip.sh b/create_cnapy_projects_zip.sh index 5254737..234789b 100644 --- a/create_cnapy_projects_zip.sh +++ b/create_cnapy_projects_zip.sh @@ -13,7 +13,7 @@ mkdir $zip_package_path # Go through each project subfolder for d in ./* do - # Move the .scen files into a temporary + # Move the .scen/.sdc files into a temporary # folder so that they are not zipped together # into the .cna file if [ -d "$d" ] @@ -24,25 +24,25 @@ do for f in ./* do echo $f - if [[ $f == *.scen ]] + if [[ $f == *.scen || $f == *.sdc ]] then - mkdir "../_scen_temp" -v - cp $f "../_scen_temp"/$f + mkdir "../_temp" -v + cp $f "../_temp"/$f fi done - # zip .cna files (without the moved .scen files) + # zip .cna files (without the moved files) package_dir=."$zip_package_path"/"${d:2}" mkdir $package_dir -v zip_path="$package_dir"/"${d:2}".cna zip $zip_path * - # Move - if there are any - the .scen files + # Move - if there are any - the .scen/.sdc files # into the temporary project subfolder - if [ -d "../_scen_temp" ] + if [ -d "../_temp" ] then - mv ../_scen_temp/* $package_dir - rm -rf "../_scen_temp" + mv ../_temp/* $package_dir + rm -rf "../_temp" fi cd ..