forked from mintty/mintty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
upload.sftp
executable file
·48 lines (41 loc) · 1.36 KB
/
upload.sftp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#! /bin/sh
version=`echo VERSION | cpp -P --include src/appinfo.h`
version=`eval echo $version`
rel=${REL-0}
pkg=mintty-$version-$rel
dbg=mintty-debuginfo-$version-$rel
ID_RSA=${ID_RSA-$HOME/.ssh/id_rsa}
echo Uploading $pkg
echo Command: sftp -i $ID_RSA [email protected]
if [ ! -f release/$pkg.hint ]
then if [ -f cygwin/setup.hint.$version ]
then cp cygwin/setup.hint.$version release/$pkg.hint
else cp cygwin/setup.hint release/$pkg.hint
fi
fi
if [ ! -f release/$dbg.hint ]
then cp cygwin/mintty-debuginfo.hint release/$dbg.hint
fi
cd release
touch '!ready'
batch="-b -"
sftp $batch -i $ID_RSA [email protected] <</EOSFTP
#mkdir x86/release/mintty
put $pkg.i686/$pkg.tar.xz x86/release/mintty/
put $pkg-src.tar.xz x86/release/mintty/
put $pkg.hint x86/release/mintty/
#mkdir x86/release/mintty/mintty-debuginfo
put $pkg.i686/$dbg.tar.xz x86/release/mintty/mintty-debuginfo/
put $dbg.hint x86/release/mintty/mintty-debuginfo/
#put /dev/null x86/release/!ready
put !ready x86/release/
#mkdir x86_64/release/mintty
put $pkg.x86_64/$pkg.tar.xz x86_64/release/mintty/
put $pkg-src.tar.xz x86_64/release/mintty/
put $pkg.hint x86_64/release/mintty/
#mkdir x86_64/release/mintty/mintty-debuginfo
put $pkg.x86_64/$dbg.tar.xz x86_64/release/mintty/mintty-debuginfo/
put $dbg.hint x86_64/release/mintty/mintty-debuginfo/
#put /dev/null x86_64/release/!ready
put !ready x86_64/release/
/EOSFTP