From 0c024eeffd72086b07a29bd64bc0177c2017487c Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 22 Nov 2008 23:46:04 +0000 Subject: I have managed to do this without giving away any hostnames or usernames, so this is secure enough to be part of subversion. still wont release unless you have the correctly named winscp and putty profiles set to the right places, though git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10813 e03df62e-2008-0410-955e-edbf42e46eb7 --- win/rename_installer.pl | 35 +++++++++++++++++++++++++++++++++++ win/site_release.bat | 13 +++++++++++++ win/upload_release.bat | 12 ++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 win/rename_installer.pl create mode 100644 win/site_release.bat create mode 100644 win/upload_release.bat diff --git a/win/rename_installer.pl b/win/rename_installer.pl new file mode 100644 index 000000000..678b11b8b --- /dev/null +++ b/win/rename_installer.pl @@ -0,0 +1,35 @@ +#!perl + +open(FH,"<../src/version.sh") or die("Can't open version.sh"); +while (chomp($v = )) +{ + $version = $v if $v =~ /^echo/; +} +close FH; + +$version =~ /InspIRCd-(\d+)\.(\d+)\.(\d+)([ab\+])/; + +$v1 = $1; +$v2 = $2; +$v3 = $3; +$type = $4; + +if ($type =~ /^[ab]$/) +{ + $version =~ /InspIRCd-\d+\.\d+\.\d+[ab\+](\d+)/; + $alphabeta = $1; + $name = "InspIRCd-$v1.$v2.$v3$type$alphabeta.exe"; + $rel = "$v1.$v2.$v3$type$alphabeta"; +} +else +{ + $name = "InspIRCd-$v1.$v2.$v3.exe"; + $rel = "$v1.$v2.$v3"; +} + +print "del $name\n"; +print "ren Setup.exe $name\n"; +system("del $name"); +system("ren Setup.exe $name"); + +system("upload_release.bat $name $rel"); diff --git a/win/site_release.bat b/win/site_release.bat new file mode 100644 index 000000000..9074efad8 --- /dev/null +++ b/win/site_release.bat @@ -0,0 +1,13 @@ +@echo off + +echo Release commencing... + +cd .. + +rem make binary +"c:\program files\nsis\makensis.exe" inspircd-noextras.nsi + +rem determine name for the binary +perl rename_installer.pl + +@echo on \ No newline at end of file diff --git a/win/upload_release.bat b/win/upload_release.bat new file mode 100644 index 000000000..0086fb377 --- /dev/null +++ b/win/upload_release.bat @@ -0,0 +1,12 @@ +@echo off + +echo release/makereleasetrunk.sh %2 > remote.txt +start "Linux build" "c:\Program Files\PuTTY\putty.exe" -load "inspircd release" -m remote.txt + +echo option batch on > upload.scp +echo option confirm off >> upload.scp +echo put -speed=4 -nopermissions -preservetime %1 /usr/home/inspircd/www/downloads/ >> upload.scp +echo exit >> upload.scp +"c:\program files\winscp\winscp.com" "inspircd release" /script=upload.scp + +@echo on -- cgit v1.2.3