Skip to content

Commit

Permalink
new utility to create redistribuable.
Browse files Browse the repository at this point in the history
  • Loading branch information
poqudrof committed Dec 22, 2016
1 parent 84dada3 commit 4bca5ab
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -12,3 +12,5 @@ build
/PapARt.tgz
/big-files/
/Papart-examples-master/
/Papart-examples/
*.tgz
4 changes: 2 additions & 2 deletions createRedist.sh
Expand Up @@ -29,8 +29,8 @@ echo "Copy the Data"
cp -R papart/data $TMP/$NAME/

echo "Copy the examples"
cp -R Papart-examples-master/apps $TMP/$NAME/examples/
cp -R Papart-examples-master/papart-examples $TMP/$NAME/examples/
cp -R Papart-examples/apps $TMP/$NAME/examples/
cp -R Papart-examples/papart-examples $TMP/$NAME/examples/

echo "Create the archive..."
cd $TMP
Expand Down
10 changes: 7 additions & 3 deletions downloadExamples.sh
@@ -1,8 +1,12 @@
#!/bin/bash

BRANCH=realsense

echo "Download the examples"
wget https://github.com/potioc/Papart-examples/archive/master.zip
unzip master.zip
wget https://github.com/potioc/Papart-examples/archive/$BRANCH.zip
unzip $BRANCH.zip

mv Papart-examples-$BRANCH Papart-examples

echo "cleaning the examples"
rm master.zip
rm $BRANCH.zip
20 changes: 20 additions & 0 deletions mergeCurrentToRedist.rb
@@ -0,0 +1,20 @@
#!/bin/ruby




current_branch = %x(git rev-parse --abbrev-ref HEAD).chomp

output_names=["realsense",
"kinect",
"hardware2",
"hardware3"]

output_names.each do |release_name|
puts %x(git checkout release-#{release_name})
puts %x(git merge --commit -m "automatic merge for deployment" #{current_branch})

puts %x(git push github release-#{release_name})
end

puts %x(git checkout #{current_branch})

0 comments on commit 4bca5ab

Please sign in to comment.