Skip to content

Commit

Permalink
include StrainDesign files in the releases
Browse files Browse the repository at this point in the history
  • Loading branch information
axelvonkamp committed Jan 29, 2024
1 parent 6ab574e commit 50fa675
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions create_cnapy_projects_zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand All @@ -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 ..
Expand Down

0 comments on commit 50fa675

Please sign in to comment.