Skip to content

Commit

Permalink
Added merge script to automatically pull in and fix the upstream repo
Browse files Browse the repository at this point in the history
  • Loading branch information
cbednarski committed Mar 15, 2016
1 parent 7ac3013 commit 7e0fe0c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions azure-merge.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
PACKER=$GOPATH/src/github.com/mitchellh/packer
AZURE=/tmp/packer-azure

ls $AZURE >/dev/null || git clone https://github.com/Azure/packer-azure /tmp/packer-azure
PWD=`pwd`
cd $AZURE && git pull
cd $PWD

# copy things
cp -r $AZURE/packer/builder/azure $PACKER/builder/
cp -r $AZURE/packer/communicator/* $PACKER/communicator/
cp -r $AZURE/packer/provisioner/azureVmCustomScriptExtension $PACKER/provisioner/

# remove legacy API client
rm -rf $PACKER/builder/azure/smapi

# fix imports
find $PACKER/builder/azure/ -type f | grep ".go" | xargs sed -e 's/Azure\/packer-azure\/packer\/builder\/azure/mitchellh\/packer\/builder\/azure/g' -i ''

0 comments on commit 7e0fe0c

Please sign in to comment.