More animation work
[potpourri.git] / update_packfiles
blobf3d7356bdd297973a58ae350533ba50a34e91a8e
1 #!/bin/bash
3 # this is a script to update the zipfiles
5 if ! [[ $PWD =~ ".*/potpourri$" ]];
6 then echo "We're not in the potpourri/ directory.";
7 fi
9 if [[ $PWD =~ ".*/potpourri$" ]];
10 then
12 echo "Updating zipfiles..."
14 cd pack_out;
16 for item in $(ls);
19 if [[ $(file $item) =~ "directory$" ]]
20 then
22 cd $item
23 echo ; echo " Updating " $item ; echo
24 zip -r ../../pack/$item.zip ./*
25 cd ..
27 done
29 cd ..