pgweb/script/package.sh

15 lines
189 B
Bash
Raw Permalink Normal View History

2015-05-07 05:24:15 +03:00
#!/bin/bash
set -e
DIR="./bin"
2015-05-07 05:31:05 +03:00
rm -f $DIR/*.zip
2015-05-07 05:24:15 +03:00
for file in $(ls $DIR)
do
fin=$DIR/$file
fout=$DIR/$file.zip
shasum -a 256 $fin
2015-05-07 05:31:05 +03:00
zip -9 -q -j $fout $fin
shasum -a 256 $fout
2015-05-07 05:24:15 +03:00
done