Skip to content

Instantly share code, notes, and snippets.

@busterb
Created April 24, 2014 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save busterb/11267168 to your computer and use it in GitHub Desktop.
Save busterb/11267168 to your computer and use it in GitHub Desktop.
libressl sync script
#!/bin/sh
#git clone https://bitbucket.org/braindamaged/openbsd-src.git
(cd openbsd-src;
git pull)
for dir in libssl libcrypto; do
echo $dir
rm -fr $dir-openbsd
cp -ax openbsd-src ${dir}-openbsd
(cd ${dir}-openbsd;
git filter-branch --prune-empty --subdirectory-filter lib/${dir} HEAD
git remote add github https://github.com/busterb/${dir}-openbsd.git
#git push -f github master
)
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment