mirror of https://github.com/wolfSSL/wolfssl.git
fixes for vagrant scripts due to name changing:
update name to wolfssl. add question before sync.pull/1/head
parent
0e4c008247
commit
fe26b86207
|
@ -2,21 +2,30 @@
|
||||||
# vi: set ft=ruby :
|
# vi: set ft=ruby :
|
||||||
|
|
||||||
$setup = <<SCRIPT
|
$setup = <<SCRIPT
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y git autoconf libtool make valgrind libpq-dev
|
apt-get install -y git autoconf libtool make valgrind libpq-dev
|
||||||
cp -rp /vagrant/ cyassl/
|
|
||||||
|
|
||||||
echo "cd cyassl" >> .bashrc
|
SRC=vagrant
|
||||||
echo "echo -e '\e[0;32mRunning cyassl sync\e[0m'" >> .bashrc
|
DST=wolfssl
|
||||||
echo "./pull_to_vagrant.sh" >> .bashrc
|
|
||||||
|
|
||||||
cd cyassl
|
cp -rp /$SRC/ $DST/
|
||||||
|
|
||||||
|
echo "cd $DST" >> .bashrc
|
||||||
|
echo "read -p 'Sync $DST? (y/n) ' -n 1 -r" >> .bashrc
|
||||||
|
echo "echo # new line" >> .bashrc
|
||||||
|
echo 'if [[ \$REPLY =~ ^[Yy]$ ]]; then' >> .bashrc
|
||||||
|
echo " echo -e '\e[0;32mRunning $DST sync\e[0m'" >> .bashrc
|
||||||
|
echo " ./pull_to_vagrant.sh" >> .bashrc
|
||||||
|
echo "fi" >> .bashrc
|
||||||
|
|
||||||
|
cd $DST
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure
|
./configure
|
||||||
make check
|
make check
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
chown -hR vagrant:vagrant cyassl/ /tmp/output
|
chown -hR vagrant:vagrant $DST/ /tmp/output
|
||||||
|
|
||||||
SCRIPT
|
SCRIPT
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
SRC=vagrant
|
||||||
|
DST=wolfssl
|
||||||
|
|
||||||
# synchronize without .git and .gitignore to avoid output files
|
# synchronize without .git and .gitignore to avoid output files
|
||||||
rsync --exclude .git --exclude-from .gitignore -rvt /vagrant/ ~/cyassl/
|
rsync --exclude .git --exclude-from .gitignore -rvt /$SRC/ ~/$DST/
|
||||||
|
|
||||||
# synchronize everything else needed.
|
# synchronize everything else needed.
|
||||||
rsync -rvt /vagrant/.git ~/cyassl/
|
rsync -rvt /$SRC/.git ~/$DST/
|
||||||
rsync -rvt /vagrant/IDE ~/cyassl/
|
rsync -rvt /$SRC/IDE ~/$DST/
|
||||||
rsync -rvt /vagrant/mcapi ~/cyassl/
|
rsync -rvt /$SRC/mcapi ~/$DST/
|
||||||
rsync -rvt /vagrant/mplabx ~/cyassl/
|
rsync -rvt /$SRC/mplabx ~/$DST/
|
||||||
rsync -rvt /vagrant/configure.ac ~/cyassl/
|
rsync -rvt /$SRC/configure.ac ~/$DST/
|
||||||
|
|
Loading…
Reference in New Issue