Skip to content

Commit

Permalink
make_src_release - Updates for the move from sourceforge to github
Browse files Browse the repository at this point in the history
  • Loading branch information
chmorgan committed Feb 12, 2017
1 parent 400d092 commit 0ff1682
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Scripts/make_src_release
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ echo "make_src_release $1 $2"

baseOutputDirectory=$1
releaseVersion=$2
gitRemotePublicPath=git://sharppcap.git.sourceforge.net/gitroot/sharppcap/sharppcap
githubSvnPath=https://github.com/chmorgan/sharppcap/tags/

# setup some variables
baseOutputDirectory=${baseOutputDirectory}/src
Expand All @@ -36,6 +36,8 @@ outputName=SharpPcap-${releaseVersion}
# build the tag by converting the '.' in the version to '_'
tag=SharpPcap_${2//./_}

# create a zip file of the appropriate tag
git archive --format=zip --remote=${gitRemotePublicPath} $tag > ${baseOutputDirectory}/${outputName}.src.zip
# export the files to a temporary folder
svn export ${githubSvnPath}/$tag ${baseOutputDirectory}/$tag

# create a zip file
zip -r ${baseOutputDirectory}/${outputName}.src.zip ${baseOutputDirectory}/$tag

0 comments on commit 0ff1682

Please sign in to comment.