@@ -25,25 +25,29 @@ function ul() {
25
25
python googlecode_upload.py -u " $USER " -w " $PASS " -s " $1 " -p " wkhtmltopdf" -l " $2 " " $3 "
26
26
}
27
27
28
- if ! [ -f " wkhtmltopdf-$1 .tar.lzma" ] ||
29
- ! [ -f " wkhtmltopdf-$1 -static-i386.tar.lzma" ] ||
30
- ! [ -f " wkhtmltopdf-$1 -static-amd64.tar.lzma" ] ||
31
- ! [ -f " wkhtmltox-$1 -installer.exe" ] ||
32
- ! [ -f " wkhtmltoimage-$1 -static-i386.tar.lzma" ] ||
33
- ! [ -f " wkhtmltoimage-$1 -static-amd64.tar.lzma" ] ||
34
- ! [ -f " libwkhtmltox-$1 .zip" ] ||
35
- ! [ -f " libwkhtmltox-$1 -i386.tar.lzma" ] ||
36
- ! [ -f " libwkhtmltox-$1 -amd64.tar.lzma" ] ; then
37
- echo " File Missing"
38
- exit 1
39
- fi
28
+ function checkf() {
29
+ if ! [ -f " $1 " ] ; then
30
+ echo " $1 is missing"
31
+ exit 1;
32
+ fi
33
+ }
34
+
35
+ checkf " wkhtmltopdf-$1 .tar.bz2"
36
+ checkf " wkhtmltopdf-$1 -static-i386.tar.bz2"
37
+ checkf " wkhtmltopdf-$1 -static-amd64.tar.bz2"
38
+ checkf " wkhtmltox-$1 -installer.exe"
39
+ checkf " wkhtmltoimage-$1 -static-i386.tar.bz2"
40
+ checkf " wkhtmltoimage-$1 -static-amd64.tar.bz2"
41
+ checkf " libwkhtmltox-$1 .zip"
42
+ checkf " libwkhtmltox-$1 -i386.tar.bz2"
43
+ checkf " libwkhtmltox-$1 -amd64.tar.bz2"
40
44
41
- ul " wkhtmltopdf-$1 Source" " Type-Source,OpSys-All,Featured" " wkhtmltopdf-$1 .tar.lzma "
42
- ul " wkhtmltopdf-$1 Linux Static Binary (i368)" " Type-Executable,OpSys-Linux,Featured" " wkhtmltopdf-$1 -static-i386.tar.lzma "
43
- ul " wkhtmltopdf-$1 Linux Static Binary (amd64)" " Type-Executable,OpSys-Linux,Featured" " wkhtmltopdf-$1 -static-amd64.tar.lzma "
45
+ ul " wkhtmltopdf-$1 Source" " Type-Source,OpSys-All,Featured" " wkhtmltopdf-$1 .tar.bz2 "
46
+ ul " wkhtmltopdf-$1 Linux Static Binary (i368)" " Type-Executable,OpSys-Linux,Featured" " wkhtmltopdf-$1 -static-i386.tar.bz2 "
47
+ ul " wkhtmltopdf-$1 Linux Static Binary (amd64)" " Type-Executable,OpSys-Linux,Featured" " wkhtmltopdf-$1 -static-amd64.tar.bz2 "
44
48
ul " wkhtmltox-$1 Windows Installer (i368)" " Type-Installer,OpSys-Windows,Featured" " wkhtmltox-$1 -installer.exe"
45
- ul " wkhtmltoimage-$1 Linux Static Binary (i368)" " Type-Executable,OpSys-Linux,Featured" " wkhtmltoimage-$1 -static-i386.tar.lzma "
46
- ul " wkhtmltoimage-$1 Linux Static Binary (amd64)" " Type-Executable,OpSys-Linux,Featured" " wkhtmltoimage-$1 -static-amd64.tar.lzma "
47
- ul " libwkhtmltox-$1 Linux Static Library (i368)" " Type-Archive,OpSys-Linux" " libwkhtmltox-$1 -i386.tar.lzma "
48
- ul " libwxhtmltox-$1 Linux Static Library (amd64)" " Type-Archive,OpSys-Linux" " libwkhtmltox-$1 -amd64.tar.lzma "
49
+ ul " wkhtmltoimage-$1 Linux Static Binary (i368)" " Type-Executable,OpSys-Linux,Featured" " wkhtmltoimage-$1 -static-i386.tar.bz2 "
50
+ ul " wkhtmltoimage-$1 Linux Static Binary (amd64)" " Type-Executable,OpSys-Linux,Featured" " wkhtmltoimage-$1 -static-amd64.tar.bz2 "
51
+ ul " libwkhtmltox-$1 Linux Static Library (i368)" " Type-Archive,OpSys-Linux" " libwkhtmltox-$1 -i386.tar.bz2 "
52
+ ul " libwxhtmltox-$1 Linux Static Library (amd64)" " Type-Archive,OpSys-Linux" " libwkhtmltox-$1 -amd64.tar.bz2 "
49
53
ul " libwkhtmltox-$1 Windows Static Library (i368)" " Type-Archive,OpSys-Windows" " libwkhtmltox-$1 .zip"
0 commit comments