From 14b6d77117f29409d09410b6e205434eca81870e Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 26 Feb 2009 13:32:39 -0500 Subject: [PATCH] Update the package script to work with Git * docs/package.rb --- docs/package.rb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/package.rb b/docs/package.rb index 8a438fd..c5bca0d 100755 --- a/docs/package.rb +++ b/docs/package.rb @@ -14,8 +14,8 @@ versionfs = versionhr.gsub(/\./, "-") puts "" -puts "Where should I export Subversion from?" -svnpath = gets.chomp +puts "Where should I export Git from?" +gitpath = gets.chomp puts "" @@ -28,12 +28,14 @@ dirpath = "bugdar-" + versionfs FileUtils.mkdir(dirpath) FileUtils.cd(pwd + dirpath) -# export subversion -puts "... exporting subversion" -system "svn export -q --non-interactive " + svnpath + " upload/" +# export git +puts "... exporting archive from Git" +system "cd " + gitpath + "; git archive --format=tar --prefix=upload/ HEAD > /tmp/gitexp.tar; cd - > /dev/null" +system "tar xf /tmp/gitexp.tar; rm /tmp/gitexp.tar" # remove temp directories -puts "... cleaning SVN export" +puts "... cleaning source export" +FileUtils.rm("upload/.gitignore") FileUtils.rm_rf("upload/docs/") FileUtils.rm_rf("upload/framework/dev/") -- 2.43.5