3.4.0-beta3
[phpmyadmin/sankalp_k.git] / scripts / upload-release
blob243281f4e1da3a17da068eb45a29c42ae2f99fa0
1 #!/bin/sh
3 set -e
4 set -u
6 if [ $# -lt 2 ] ; then
7 echo 'Usage: upload-release USERNAME VERSION [DIR]'
8 echo 'Must be called in directory with binaries or with path'
9 exit 1
11 USER=$1
12 REL=$2
14 if [ $# -gt 2 ] ; then
15 cd "$3"
18 sftp $USER,phpmyadmin@frs.sourceforge.net <<EOT
19 cd /home/frs/project/p/ph/phpmyadmin/phpMyAdmin
20 mkdir $REL
21 cd $REL
22 put phpMyAdmin-$REL-all-languages.tar.bz2
23 put phpMyAdmin-$REL-english.tar.bz2
24 put phpMyAdmin-$REL-all-languages.tar.xz
25 put phpMyAdmin-$REL-english.tar.xz
26 put phpMyAdmin-$REL-all-languages.tar.gz
27 put phpMyAdmin-$REL-english.tar.gz
28 put phpMyAdmin-$REL-all-languages.zip
29 put phpMyAdmin-$REL-english.zip
30 put phpMyAdmin-$REL-all-languages.7z
31 put phpMyAdmin-$REL-english.7z
32 put phpMyAdmin-$REL-notes.html
33 EOT