mailiverse/java/ext/make-bc-packaged

33 lines
500 B
Plaintext
Raw Permalink Normal View History

set -x
2013-10-04 21:10:20 -04:00
source ../../build/seds
rm -rf bc-packaged
tar -hczf bc-project.tar.gz bc-project/
mkdir t
cd t
tar xzf ../bc-project.tar.gz
rm ../bc-project.tar.gz
cd bc-project
2013-10-04 21:10:20 -04:00
find . -type f -name "*.java" -print0 | xargs -0 $sed 's/org.bouncycastle/org.bc/g'
for DIR in $(find . -type d -name "bouncycastle")
do
pushd $DIR
cd ..
mv bouncycastle bc
popd
done
cd ..
mv bc-project ../bc-packaged
cd ..
rmdir t
cp bc-packaged-template/.* bc-packaged
cp bc-packaged-template/* bc-packaged