uget-1.10.4/ 0000775 0001750 0001750 00000000000 12260772027 007551 5 0000000 0000000 uget-1.10.4/depcomp 0000755 0001750 0001750 00000047556 11736361705 011071 0000000 0000000 #! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2011-12-04.11; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
# 2011 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Originally written by Alexandre Oliva .
case $1 in
'')
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
exit 1;
;;
-h | --h*)
cat <<\EOF
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
Run PROGRAMS ARGS to compile a file, generating dependencies
as side-effects.
Environment variables:
depmode Dependency tracking mode.
source Source file read by `PROGRAMS ARGS'.
object Object file output by `PROGRAMS ARGS'.
DEPDIR directory where to store dependencies.
depfile Dependency file to output.
tmpdepfile Temporary file to use when outputting dependencies.
libtool Whether libtool is used (yes/no).
Report bugs to .
EOF
exit $?
;;
-v | --v*)
echo "depcomp $scriptversion"
exit $?
;;
esac
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
echo "depcomp: Variables source, object and depmode must be set" 1>&2
exit 1
fi
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
depfile=${depfile-`echo "$object" |
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
rm -f "$tmpdepfile"
# Some modes work just like other modes, but use different flags. We
# parameterize here, but still list the modes in the big case below,
# to make depend.m4 easier to write. Note that we *cannot* use a case
# here, because this file can only contain one case statement.
if test "$depmode" = hp; then
# HP compiler uses -M and no extra arg.
gccflag=-M
depmode=gcc
fi
if test "$depmode" = dashXmstdout; then
# This is just like dashmstdout with a different argument.
dashmflag=-xM
depmode=dashmstdout
fi
cygpath_u="cygpath -u -f -"
if test "$depmode" = msvcmsys; then
# This is just like msvisualcpp but w/o cygpath translation.
# Just convert the backslash-escaped backslashes to single forward
# slashes to satisfy depend.m4
cygpath_u='sed s,\\\\,/,g'
depmode=msvisualcpp
fi
if test "$depmode" = msvc7msys; then
# This is just like msvc7 but w/o cygpath translation.
# Just convert the backslash-escaped backslashes to single forward
# slashes to satisfy depend.m4
cygpath_u='sed s,\\\\,/,g'
depmode=msvc7
fi
case "$depmode" in
gcc3)
## gcc 3 implements dependency tracking that does exactly what
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
## it if -MD -MP comes after the -MF stuff. Hmm.
## Unfortunately, FreeBSD c89 acceptance of flags depends upon
## the command line argument order; so add the flags where they
## appear in depend2.am. Note that the slowdown incurred here
## affects only configure: in makefiles, %FASTDEP% shortcuts this.
for arg
do
case $arg in
-c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
*) set fnord "$@" "$arg" ;;
esac
shift # fnord
shift # $arg
done
"$@"
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
mv "$tmpdepfile" "$depfile"
;;
gcc)
## There are various ways to get dependency output from gcc. Here's
## why we pick this rather obscure method:
## - Don't want to use -MD because we'd like the dependencies to end
## up in a subdir. Having to rename by hand is ugly.
## (We might end up doing this anyway to support other compilers.)
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
## -MM, not -M (despite what the docs say).
## - Using -M directly means running the compiler twice (even worse
## than renaming).
if test -z "$gccflag"; then
gccflag=-MD,
fi
"$@" -Wp,"$gccflag$tmpdepfile"
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
echo "$object : \\" > "$depfile"
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
## The second -e expression handles DOS-style file names with drive letters.
sed -e 's/^[^:]*: / /' \
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
## This next piece of magic avoids the `deleted header file' problem.
## The problem is that when a header file which appears in a .P file
## is deleted, the dependency causes make to die (because there is
## typically no way to rebuild the header). We avoid this by adding
## dummy dependencies for each header file. Too bad gcc doesn't do
## this for us directly.
tr ' ' '
' < "$tmpdepfile" |
## Some versions of gcc put a space before the `:'. On the theory
## that the space means something, we add a space to the output as
## well. hp depmode also adds that space, but also prefixes the VPATH
## to the object. Take care to not repeat it in the output.
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
| sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
hp)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,
# since it is checked for above.
exit 1
;;
sgi)
if test "$libtool" = yes; then
"$@" "-Wp,-MDupdate,$tmpdepfile"
else
"$@" -MDupdate "$tmpdepfile"
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
echo "$object : \\" > "$depfile"
# Clip off the initial element (the dependent). Don't try to be
# clever and replace this with sed code, as IRIX sed won't handle
# lines with more than a fixed number of characters (4096 in
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
# the IRIX cc adds comments like `#:fec' to the end of the
# dependency line.
tr ' ' '
' < "$tmpdepfile" \
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
tr '
' ' ' >> "$depfile"
echo >> "$depfile"
# The second pass generates a dummy entry for each header file.
tr ' ' '
' < "$tmpdepfile" \
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
>> "$depfile"
else
# The sourcefile does not contain any dependencies, so just
# store a dummy comment line, to avoid errors with the Makefile
# "include basename.Plo" scheme.
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile"
;;
aix)
# The C for AIX Compiler uses -M and outputs the dependencies
# in a .u file. In older versions, this file always lives in the
# current directory. Also, the AIX compiler puts `$object:' at the
# start of each line; $object doesn't have directory information.
# Version 6 uses the directory in both cases.
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
test "x$dir" = "x$object" && dir=
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
if test "$libtool" = yes; then
tmpdepfile1=$dir$base.u
tmpdepfile2=$base.u
tmpdepfile3=$dir.libs/$base.u
"$@" -Wc,-M
else
tmpdepfile1=$dir$base.u
tmpdepfile2=$dir$base.u
tmpdepfile3=$dir$base.u
"$@" -M
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
exit $stat
fi
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
do
test -f "$tmpdepfile" && break
done
if test -f "$tmpdepfile"; then
# Each line is of the form `foo.o: dependent.h'.
# Do two passes, one to just change these to
# `$object: dependent.h' and one to simply `dependent.h:'.
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
# That's a tab and a space in the [].
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
else
# The sourcefile does not contain any dependencies, so just
# store a dummy comment line, to avoid errors with the Makefile
# "include basename.Plo" scheme.
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile"
;;
icc)
# Intel's C compiler understands `-MD -MF file'. However on
# icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
# ICC 7.0 will fill foo.d with something like
# foo.o: sub/foo.c
# foo.o: sub/foo.h
# which is wrong. We want:
# sub/foo.o: sub/foo.c
# sub/foo.o: sub/foo.h
# sub/foo.c:
# sub/foo.h:
# ICC 7.1 will output
# foo.o: sub/foo.c sub/foo.h
# and will wrap long lines using \ :
# foo.o: sub/foo.c ... \
# sub/foo.h ... \
# ...
"$@" -MD -MF "$tmpdepfile"
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
# Each line is of the form `foo.o: dependent.h',
# or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
# Do two passes, one to just change these to
# `$object: dependent.h' and one to simply `dependent.h:'.
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
# Some versions of the HPUX 10.20 sed can't process this invocation
# correctly. Breaking it into two sed invocations is a workaround.
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
hp2)
# The "hp" stanza above does not work with aCC (C++) and HP's ia64
# compilers, which have integrated preprocessors. The correct option
# to use with these is +Maked; it writes dependencies to a file named
# 'foo.d', which lands next to the object file, wherever that
# happens to be.
# Much of this is similar to the tru64 case; see comments there.
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
test "x$dir" = "x$object" && dir=
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
if test "$libtool" = yes; then
tmpdepfile1=$dir$base.d
tmpdepfile2=$dir.libs/$base.d
"$@" -Wc,+Maked
else
tmpdepfile1=$dir$base.d
tmpdepfile2=$dir$base.d
"$@" +Maked
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile1" "$tmpdepfile2"
exit $stat
fi
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
do
test -f "$tmpdepfile" && break
done
if test -f "$tmpdepfile"; then
sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
# Add `dependent.h:' lines.
sed -ne '2,${
s/^ *//
s/ \\*$//
s/$/:/
p
}' "$tmpdepfile" >> "$depfile"
else
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile" "$tmpdepfile2"
;;
tru64)
# The Tru64 compiler uses -MD to generate dependencies as a side
# effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
# dependencies in `foo.d' instead, so we check for that too.
# Subdirectories are respected.
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
test "x$dir" = "x$object" && dir=
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
if test "$libtool" = yes; then
# With Tru64 cc, shared objects can also be used to make a
# static library. This mechanism is used in libtool 1.4 series to
# handle both shared and static libraries in a single compilation.
# With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
#
# With libtool 1.5 this exception was removed, and libtool now
# generates 2 separate objects for the 2 libraries. These two
# compilations output dependencies in $dir.libs/$base.o.d and
# in $dir$base.o.d. We have to check for both files, because
# one of the two compilations can be disabled. We should prefer
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
# automatically cleaned when .libs/ is deleted, while ignoring
# the former would cause a distcleancheck panic.
tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
tmpdepfile2=$dir$base.o.d # libtool 1.5
tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
"$@" -Wc,-MD
else
tmpdepfile1=$dir$base.o.d
tmpdepfile2=$dir$base.d
tmpdepfile3=$dir$base.d
tmpdepfile4=$dir$base.d
"$@" -MD
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
exit $stat
fi
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
do
test -f "$tmpdepfile" && break
done
if test -f "$tmpdepfile"; then
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
# That's a tab and a space in the [].
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
else
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile"
;;
msvc7)
if test "$libtool" = yes; then
showIncludes=-Wc,-showIncludes
else
showIncludes=-showIncludes
fi
"$@" $showIncludes > "$tmpdepfile"
stat=$?
grep -v '^Note: including file: ' "$tmpdepfile"
if test "$stat" = 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
echo "$object : \\" > "$depfile"
# The first sed program below extracts the file names and escapes
# backslashes for cygpath. The second sed program outputs the file
# name when reading, but also accumulates all include files in the
# hold buffer in order to output them again at the end. This only
# works with sed implementations that can handle large buffers.
sed < "$tmpdepfile" -n '
/^Note: including file: *\(.*\)/ {
s//\1/
s/\\/\\\\/g
p
}' | $cygpath_u | sort -u | sed -n '
s/ /\\ /g
s/\(.*\)/ \1 \\/p
s/.\(.*\) \\/\1:/
H
$ {
s/.*/ /
G
p
}' >> "$depfile"
rm -f "$tmpdepfile"
;;
msvc7msys)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,
# since it is checked for above.
exit 1
;;
#nosideeffect)
# This comment above is used by automake to tell side-effect
# dependency tracking mechanisms from slower ones.
dashmstdout)
# Important note: in order to support this mode, a compiler *must*
# always write the preprocessed file to stdout, regardless of -o.
"$@" || exit $?
# Remove the call to Libtool.
if test "$libtool" = yes; then
while test "X$1" != 'X--mode=compile'; do
shift
done
shift
fi
# Remove `-o $object'.
IFS=" "
for arg
do
case $arg in
-o)
shift
;;
$object)
shift
;;
*)
set fnord "$@" "$arg"
shift # fnord
shift # $arg
;;
esac
done
test -z "$dashmflag" && dashmflag=-M
# Require at least two characters before searching for `:'
# in the target name. This is to cope with DOS-style filenames:
# a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
"$@" $dashmflag |
sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
rm -f "$depfile"
cat < "$tmpdepfile" > "$depfile"
tr ' ' '
' < "$tmpdepfile" | \
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
dashXmstdout)
# This case only exists to satisfy depend.m4. It is never actually
# run, as this mode is specially recognized in the preamble.
exit 1
;;
makedepend)
"$@" || exit $?
# Remove any Libtool call
if test "$libtool" = yes; then
while test "X$1" != 'X--mode=compile'; do
shift
done
shift
fi
# X makedepend
shift
cleared=no eat=no
for arg
do
case $cleared in
no)
set ""; shift
cleared=yes ;;
esac
if test $eat = yes; then
eat=no
continue
fi
case "$arg" in
-D*|-I*)
set fnord "$@" "$arg"; shift ;;
# Strip any option that makedepend may not understand. Remove
# the object too, otherwise makedepend will parse it as a source file.
-arch)
eat=yes ;;
-*|$object)
;;
*)
set fnord "$@" "$arg"; shift ;;
esac
done
obj_suffix=`echo "$object" | sed 's/^.*\././'`
touch "$tmpdepfile"
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
rm -f "$depfile"
# makedepend may prepend the VPATH from the source file name to the object.
# No need to regex-escape $object, excess matching of '.' is harmless.
sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
sed '1,2d' "$tmpdepfile" | tr ' ' '
' | \
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile" "$tmpdepfile".bak
;;
cpp)
# Important note: in order to support this mode, a compiler *must*
# always write the preprocessed file to stdout.
"$@" || exit $?
# Remove the call to Libtool.
if test "$libtool" = yes; then
while test "X$1" != 'X--mode=compile'; do
shift
done
shift
fi
# Remove `-o $object'.
IFS=" "
for arg
do
case $arg in
-o)
shift
;;
$object)
shift
;;
*)
set fnord "$@" "$arg"
shift # fnord
shift # $arg
;;
esac
done
"$@" -E |
sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
sed '$ s: \\$::' > "$tmpdepfile"
rm -f "$depfile"
echo "$object : \\" > "$depfile"
cat < "$tmpdepfile" >> "$depfile"
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
msvisualcpp)
# Important note: in order to support this mode, a compiler *must*
# always write the preprocessed file to stdout.
"$@" || exit $?
# Remove the call to Libtool.
if test "$libtool" = yes; then
while test "X$1" != 'X--mode=compile'; do
shift
done
shift
fi
IFS=" "
for arg
do
case "$arg" in
-o)
shift
;;
$object)
shift
;;
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
set fnord "$@"
shift
shift
;;
*)
set fnord "$@" "$arg"
shift
shift
;;
esac
done
"$@" -E 2>/dev/null |
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
rm -f "$depfile"
echo "$object : \\" > "$depfile"
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
echo " " >> "$depfile"
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
rm -f "$tmpdepfile"
;;
msvcmsys)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,
# since it is checked for above.
exit 1
;;
none)
exec "$@"
;;
*)
echo "Unknown depmode $depmode" 1>&2
exit 1
;;
esac
exit 0
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
uget-1.10.4/tests/ 0000775 0001750 0001750 00000000000 12260772031 010706 5 0000000 0000000 uget-1.10.4/tests/test-download.c 0000664 0001750 0001750 00000007600 12165471260 013565 0000000 0000000 #include // exit(), EXIT_SUCCESS, EXIT_FAILURE
#ifdef _WIN32
#include
#include
#include
#endif // _WIN32
#include
#include
#include
#include
#include
static void dump_progress (UgetProgress* progress)
{
#ifdef _WIN32
printf ("complete size : %I64d byte\n", progress->complete);
#else
g_print ("complete size : %lld byte\n", (long long int) progress->complete);
#endif
#ifdef _WIN32
printf ("total size : %I64d byte\n", progress->total);
#else
g_print ("total size : %lld byte\n", (long long int) progress->total);
#endif
g_print ("speed (upload) : %.2f byte/sec\n", (double) progress->upload_speed);
g_print ("speed : %.2f byte/sec\n", (double) progress->download_speed);
g_print ("percent : %.2f%%\n", progress->percent);
g_print ("consumed time : %.2f sec\n", progress->consume_time);
g_print ("remain time : %.2f sec\n", progress->remain_time);
}
static void plugin_callback (UgPlugin* plugin, const UgMessage* msg, gpointer user_data)
{
UgetProgress* progress;
switch (msg->type) {
case UG_MESSAGE_STATE:
g_print ("--- Message State : State changed to %d\n", msg->data.v_int);
break;
case UG_MESSAGE_PROGRESS:
g_print ("--- Message Progress :\n");
progress = ug_data_new (UgetProgressInfo);
if (ug_plugin_get (plugin, UG_TYPE_INSTANCE, progress) == UG_RESULT_OK)
dump_progress (progress);
ug_data_free (progress);
break;
case UG_MESSAGE_ERROR:
g_print ("--- Message Error %d: %s\n", msg->code, msg->string);
break;
case UG_MESSAGE_WARNING:
g_print ("--- Message Warning %d: %s\n", msg->code, msg->string);
break;
case UG_MESSAGE_INFO:
g_print ("--- Message Info %d: %s\n", msg->code, msg->string);
break;
case UG_MESSAGE_DATA:
switch (msg->code) {
case UG_MESSAGE_DATA_FILE_CHANGED:
g_print ("--- Message Data : File changed to %s\n", msg->data.v_string);
break;
// HTTP message
case UG_MESSAGE_DATA_HTTP_LOCATION:
g_print ("--- Message Data : HTTP Location: %s\n", msg->data.v_string);
break;
case UG_MESSAGE_DATA_HTTP_CONTENT_LOCATION:
g_print ("--- Message Data : HTTP Content-Location: %s\n", msg->data.v_string);
break;
case UG_MESSAGE_DATA_HTTP_CONTENT_DISPOSITION:
g_print ("--- Message Data : HTTP Content-disposition: %s\n", msg->data.v_string);
break;
default:
break;
}
break;
default:
break;
}
}
int main (int argc, char* argv[])
{
const UgOptionEntry* uoentry;
UgDataset* dataset;
UgetCommon* common;
UgPlugin* plugin;
GOptionContext* context;
GOptionGroup* group;
GError* error = NULL;
#ifdef _WIN32 // curl_global_init() will do this
WSADATA WSAData;
WSAStartup (MAKEWORD (2, 2), &WSAData);
#endif
uglib_init ();
// parse command-line options
context = g_option_context_new ("[URL]");
group = g_option_group_new (NULL, NULL, NULL, NULL, NULL);
uoentry = ug_option_get_main_entry ();
g_option_group_add_entries (group, uoentry->entry);
g_option_context_set_main_group (context, group);
if (g_option_context_parse (context, &argc, &argv, &error) == FALSE) {
g_print ("Option parsing failed : %s\n", error->message);
exit (EXIT_FAILURE); // EXIT_FAILURE == 1
}
// get URL from remained arguments
if (argc == 1) {
g_print ("%s", g_option_context_get_help (context, TRUE, NULL));
exit (EXIT_FAILURE); // EXIT_FAILURE == 1
}
dataset = ug_dataset_new ();
ug_option_entry_get (uoentry, dataset);
common = ug_dataset_realloc (dataset, UgetCommonInfo, 0);
common->url = g_strdup (argv[1]);
plugin = ug_plugin_new_by_data (dataset);
ug_dataset_unref (dataset);
if (plugin) {
ug_plugin_set_state (plugin, UG_STATE_ACTIVE);
while (ug_plugin_dispatch (plugin, plugin_callback, NULL))
ug_plugin_delay (plugin, 1000);
ug_plugin_unref (plugin);
}
uglib_finalize ();
#ifdef _WIN32
WSACleanup ();
#endif
return EXIT_SUCCESS; // EXIT_SUCCESS == 0
}
uget-1.10.4/tests/Makefile.am 0000664 0001750 0001750 00000001521 12021236333 012654 0000000 0000000
noinst_PROGRAMS = test-download test-conf test-ipc test-xmlrpc
TESTS_LIBS = @GLIB_LIBS@ @GIO_LIBS@ @GTHREAD_LIBS@ @GMODULE_LIBS@ @CURL_LIBS@ @LIBPWMD_LIBS@
# set the include path found by configure
AM_CPPFLAGS = -I$(top_srcdir)/uglib -I$(top_srcdir)/tests
AM_CFLAGS = @LFS_CFLAGS@ @GLIB_CFLAGS@ @GIO_CFLAGS@ @GTHREAD_CFLAGS@ @GMODULE_CFLAGS@ @CURL_CFLAGS@ @LIBPWMD_CFLAGS@
AM_LDFLAGS = @LFS_LDFLAGS@
test_download_LDADD = $(top_builddir)/uglib/libuglib.a $(TESTS_LIBS)
test_download_SOURCES = test-download.c
test_conf_LDADD = $(top_builddir)/uglib/libuglib.a $(TESTS_LIBS)
test_conf_SOURCES = test-conf.c
test_ipc_LDADD = $(top_builddir)/uglib/libuglib.a $(TESTS_LIBS)
test_ipc_SOURCES = test-ipc.c
test_xmlrpc_LDADD = $(top_builddir)/uglib/libuglib.a $(TESTS_LIBS)
test_xmlrpc_SOURCES = test-xmlrpc.c
uget-1.10.4/tests/test-xmlrpc.c 0000664 0001750 0001750 00000007702 12021236333 013255 0000000 0000000 #ifdef HAVE_CONFIG_H
#include
#endif
#ifdef _WIN32
#include
#endif
#ifdef HAVE_PLUGIN_ARIA2
#include
void ug_xmlrpc_value_dump (UgXmlrpcValue* value);
void ug_xmlrpc_value_dump_data (UgXmlrpcValue* value)
{
UgXmlrpcValue* child;
guint index;
for (index = 0; index < value->len; index++) {
child = value->data + index;
if (child->name)
g_print ("name = %s, ", child->name);
else
g_print ("index = %d, ", index);
ug_xmlrpc_value_dump (child);
}
}
void ug_xmlrpc_value_dump (UgXmlrpcValue* value)
{
switch (value->type) {
case UG_XMLRPC_INT:
g_print ("int = %d\n", value->c.int_);
break;
case UG_XMLRPC_INT64:
g_print ("int64 = %lld\n", (long long) value->c.int64);
break;
case UG_XMLRPC_BOOLEAN:
g_print ("boolean = %d\n", value->c.int_);
break;
case UG_XMLRPC_STRING:
g_print ("string = '%s'\n", value->c.string);
break;
case UG_XMLRPC_DOUBLE:
g_print ("double = %f\n", value->c.double_);
break;
case UG_XMLRPC_DATETIME:
g_print ("datetime = '%s'\n", value->c.datetime);
break;
case UG_XMLRPC_BINARY:
g_print ("binary data, length = %u\n", value->len);
break;
case UG_XMLRPC_NIL:
g_print ("nil\n");
break;
case UG_XMLRPC_ARRAY:
g_print ("array --- start ---\n");
ug_xmlrpc_value_dump_data (value);
g_print ("array --- end ---\n");
break;
case UG_XMLRPC_STRUCT:
g_print ("struct --- start ---\n");
ug_xmlrpc_value_dump_data (value);
g_print ("struct --- end ---\n");
break;
default:
break;
}
}
void aria2_getVersion (UgXmlrpc* xmlrpc)
{
UgXmlrpcValue* value;
UgXmlrpcResponse response;
g_print ("aria2.getVersion\n");
response = ug_xmlrpc_call (xmlrpc,
"aria2.getVersion",
UG_XMLRPC_NONE);
switch (response) {
case UG_XMLRPC_ERROR:
g_print ("- error\n");
break;
case UG_XMLRPC_FAULT:
case UG_XMLRPC_OK:
value = ug_xmlrpc_get_value (xmlrpc);
ug_xmlrpc_value_dump (value);
break;
}
g_print ("\n");
}
void aria2_tellStatus (UgXmlrpc* xmlrpc)
{
UgXmlrpcValue* value;
UgXmlrpcResponse response;
g_print ("aria2.tellStatus\n");
response = ug_xmlrpc_call (xmlrpc,
"aria2.tellStatus",
UG_XMLRPC_STRING, "1",
UG_XMLRPC_NONE);
switch (response) {
case UG_XMLRPC_ERROR:
g_print ("- error\n");
break;
case UG_XMLRPC_FAULT:
case UG_XMLRPC_OK:
value = ug_xmlrpc_get_value (xmlrpc);
ug_xmlrpc_value_dump (value);
break;
}
g_print ("\n");
}
void aria2_changeGlobalOption (UgXmlrpc* xmlrpc)
{
UgXmlrpcValue* options;
UgXmlrpcValue* member;
UgXmlrpcValue* value;
UgXmlrpcResponse response;
g_print ("aria2.changeGlobalOption\n");
options = ug_xmlrpc_value_new_struct (2);
// max-overall-download-limit
member = ug_xmlrpc_value_alloc (options);
member->name = "max-overall-download-limit";
member->type = UG_XMLRPC_STRING;
member->c.string = g_strdup_printf ("%dK", 0);
// max-overall-upload-limit
member = ug_xmlrpc_value_alloc (options);
member->name = "max-overall-upload-limit";
member->type = UG_XMLRPC_STRING;
member->c.string = g_strdup_printf ("%dK", 0);
response = ug_xmlrpc_call (xmlrpc,
"aria2.changeGlobalOption",
UG_XMLRPC_STRUCT, options,
UG_XMLRPC_NONE);
switch (response) {
case UG_XMLRPC_ERROR:
g_print ("- error\n");
break;
case UG_XMLRPC_FAULT:
case UG_XMLRPC_OK:
value = ug_xmlrpc_get_value (xmlrpc);
ug_xmlrpc_value_dump (value);
break;
}
g_print ("\n");
ug_xmlrpc_value_free (options);
}
void test_xmlrpc (void)
{
UgXmlrpc* xmlrpc;
xmlrpc = g_malloc0 (sizeof (UgXmlrpc));
ug_xmlrpc_init (xmlrpc);
ug_xmlrpc_use_client (xmlrpc, "http://localhost:6800/rpc", NULL);
aria2_getVersion (xmlrpc);
aria2_tellStatus (xmlrpc);
aria2_changeGlobalOption (xmlrpc);
ug_xmlrpc_finalize (xmlrpc);
g_free (xmlrpc);
}
#endif // HAVE_PLUGIN_ARIA2
int main (int argc, char* argv[])
{
#ifdef _WIN32
WSADATA WSAData;
WSAStartup (MAKEWORD (2, 2), &WSAData);
#endif
#ifdef HAVE_PLUGIN_ARIA2
test_xmlrpc ();
#endif
#ifdef _WIN32
WSACleanup ();
#endif
return 0; // EXIT_SUCCESS
}
uget-1.10.4/tests/test-ipc.c 0000664 0001750 0001750 00000004217 12021236333 012521 0000000 0000000 #ifdef _WIN32
#include
#include
#include
#else
#include
#endif
#include
#include
#define COUNT_LIMIT 3
static gboolean server_timer (gpointer);
static gpointer client_thread (gpointer);
GMainLoop* main_loop;
// server
static gboolean server_timer (gpointer data)
{
static UgIpc ipc;
static guint count = 0;
static gboolean inited = FALSE;
GPtrArray* args;
if (inited == FALSE) {
inited = TRUE;
g_print ("Startup uGet IPC server...\n");
ug_ipc_init (&ipc, NULL);
ug_ipc_use_server (&ipc);
}
if (count < COUNT_LIMIT) {
args = ug_ipc_pop (&ipc);
if (args) {
ug_arg_free (args, TRUE);
count++;
}
return TRUE;
}
g_print ("Shutdown uGet IPC server...\n");
// server shutdown
ug_ipc_finalize (&ipc);
// exit main loop
g_main_loop_quit (main_loop);
// exit thread
return FALSE;
}
// client
static gpointer client_thread (gpointer data)
{
UgIpc ipc;
guint count;
gchar* string = "http://test.org/index.htm";
g_print ("Connect to uGet IPC server...\n");
ug_ipc_init (&ipc, NULL);
ug_ipc_use_client (&ipc);
for (count=0; count < COUNT_LIMIT; count++) {
// sleep 500,000 microseconds (0.5 seconds)
g_usleep (500 * 1000);
// ping
g_print ("uGet IPC client: ping...\n");
if (ug_ipc_ping (&ipc) == FALSE)
g_print ("uGet IPC client: ping fail\n");
else
g_print ("uGet IPC client: ping ok\n");
// send
g_print ("uGet IPC client: send...\n");
if (ug_ipc_send (&ipc, 1, &string) == FALSE)
g_print ("uGet IPC client: send fail\n");
else
g_print ("uGet IPC client: send ok\n");
}
g_print ("Disconnect...\n");
// disconnect
ug_ipc_finalize (&ipc);
return NULL;
}
int main (int argc, char* argv[])
{
#ifdef _WIN32
WSADATA WSAData;
WSAStartup (MAKEWORD (2, 2), &WSAData);
#endif
main_loop = g_main_loop_new (NULL, FALSE);
// start server
server_timer (NULL);
g_timeout_add_full (G_PRIORITY_DEFAULT_IDLE, 500, (GSourceFunc) server_timer, NULL, NULL);
// start client thread
g_thread_new ("ipc-client", (GThreadFunc) client_thread, NULL);
g_main_loop_run (main_loop);
#ifdef _WIN32
WSACleanup ();
#endif
return 0; // EXIT_SUCCESS
}
uget-1.10.4/tests/Makefile.in 0000664 0001750 0001750 00000040600 12260757434 012705 0000000 0000000 # Makefile.in generated by automake 1.11.3 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
# Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
noinst_PROGRAMS = test-download$(EXEEXT) test-conf$(EXEEXT) \
test-ipc$(EXEEXT) test-xmlrpc$(EXEEXT)
subdir = tests
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
PROGRAMS = $(noinst_PROGRAMS)
am_test_conf_OBJECTS = test-conf.$(OBJEXT)
test_conf_OBJECTS = $(am_test_conf_OBJECTS)
am__DEPENDENCIES_1 =
test_conf_DEPENDENCIES = $(top_builddir)/uglib/libuglib.a \
$(am__DEPENDENCIES_1)
am_test_download_OBJECTS = test-download.$(OBJEXT)
test_download_OBJECTS = $(am_test_download_OBJECTS)
test_download_DEPENDENCIES = $(top_builddir)/uglib/libuglib.a \
$(am__DEPENDENCIES_1)
am_test_ipc_OBJECTS = test-ipc.$(OBJEXT)
test_ipc_OBJECTS = $(am_test_ipc_OBJECTS)
test_ipc_DEPENDENCIES = $(top_builddir)/uglib/libuglib.a \
$(am__DEPENDENCIES_1)
am_test_xmlrpc_OBJECTS = test-xmlrpc.$(OBJEXT)
test_xmlrpc_OBJECTS = $(am_test_xmlrpc_OBJECTS)
test_xmlrpc_DEPENDENCIES = $(top_builddir)/uglib/libuglib.a \
$(am__DEPENDENCIES_1)
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
SOURCES = $(test_conf_SOURCES) $(test_download_SOURCES) \
$(test_ipc_SOURCES) $(test_xmlrpc_SOURCES)
DIST_SOURCES = $(test_conf_SOURCES) $(test_download_SOURCES) \
$(test_ipc_SOURCES) $(test_xmlrpc_SOURCES)
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
ALL_LINGUAS = @ALL_LINGUAS@
AMTAR = @AMTAR@
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
APP_INDICATOR_CFLAGS = @APP_INDICATOR_CFLAGS@
APP_INDICATOR_LIBS = @APP_INDICATOR_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CATALOGS = @CATALOGS@
CATOBJEXT = @CATOBJEXT@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CURL_CFLAGS = @CURL_CFLAGS@
CURL_CONFIG = @CURL_CONFIG@
CURL_LIBS = @CURL_LIBS@
CYGPATH_W = @CYGPATH_W@
DATADIRNAME = @DATADIRNAME@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
GETCONF = @GETCONF@
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
GIO_CFLAGS = @GIO_CFLAGS@
GIO_LIBS = @GIO_LIBS@
GLIB_CFLAGS = @GLIB_CFLAGS@
GLIB_LIBS = @GLIB_LIBS@
GMODULE_CFLAGS = @GMODULE_CFLAGS@
GMODULE_LIBS = @GMODULE_LIBS@
GMOFILES = @GMOFILES@
GMSGFMT = @GMSGFMT@
GNUTLS_CFLAGS = @GNUTLS_CFLAGS@
GNUTLS_LIBS = @GNUTLS_LIBS@
GREP = @GREP@
GSTREAMER_CFLAGS = @GSTREAMER_CFLAGS@
GSTREAMER_LIBS = @GSTREAMER_LIBS@
GTHREAD_CFLAGS = @GTHREAD_CFLAGS@
GTHREAD_LIBS = @GTHREAD_LIBS@
GTK_CFLAGS = @GTK_CFLAGS@
GTK_LIBS = @GTK_LIBS@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
INSTOBJEXT = @INSTOBJEXT@
INTLLIBS = @INTLLIBS@
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
INTLTOOL_MERGE = @INTLTOOL_MERGE@
INTLTOOL_PERL = @INTLTOOL_PERL@
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
LDFLAGS = @LDFLAGS@
LFS_CFLAGS = @LFS_CFLAGS@
LFS_LDFLAGS = @LFS_LDFLAGS@
LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@
LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@
LIBOBJS = @LIBOBJS@
LIBPWMD_CFLAGS = @LIBPWMD_CFLAGS@
LIBPWMD_LIBS = @LIBPWMD_LIBS@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@
MSGFMT_OPTS = @MSGFMT_OPTS@
MSGMERGE = @MSGMERGE@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
POFILES = @POFILES@
POSUB = @POSUB@
PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
RANLIB = @RANLIB@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
USE_NLS = @USE_NLS@
VERSION = @VERSION@
XGETTEXT = @XGETTEXT@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build_alias = @build_alias@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host_alias = @host_alias@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
intltool__v_merge_options_ = @intltool__v_merge_options_@
intltool__v_merge_options_0 = @intltool__v_merge_options_0@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
TESTS_LIBS = @GLIB_LIBS@ @GIO_LIBS@ @GTHREAD_LIBS@ @GMODULE_LIBS@ @CURL_LIBS@ @LIBPWMD_LIBS@
# set the include path found by configure
AM_CPPFLAGS = -I$(top_srcdir)/uglib -I$(top_srcdir)/tests
AM_CFLAGS = @LFS_CFLAGS@ @GLIB_CFLAGS@ @GIO_CFLAGS@ @GTHREAD_CFLAGS@ @GMODULE_CFLAGS@ @CURL_CFLAGS@ @LIBPWMD_CFLAGS@
AM_LDFLAGS = @LFS_LDFLAGS@
test_download_LDADD = $(top_builddir)/uglib/libuglib.a $(TESTS_LIBS)
test_download_SOURCES = test-download.c
test_conf_LDADD = $(top_builddir)/uglib/libuglib.a $(TESTS_LIBS)
test_conf_SOURCES = test-conf.c
test_ipc_LDADD = $(top_builddir)/uglib/libuglib.a $(TESTS_LIBS)
test_ipc_SOURCES = test-ipc.c
test_xmlrpc_LDADD = $(top_builddir)/uglib/libuglib.a $(TESTS_LIBS)
test_xmlrpc_SOURCES = test-xmlrpc.c
all: all-am
.SUFFIXES:
.SUFFIXES: .c .o .obj
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu tests/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
clean-noinstPROGRAMS:
-test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
test-conf$(EXEEXT): $(test_conf_OBJECTS) $(test_conf_DEPENDENCIES) $(EXTRA_test_conf_DEPENDENCIES)
@rm -f test-conf$(EXEEXT)
$(LINK) $(test_conf_OBJECTS) $(test_conf_LDADD) $(LIBS)
test-download$(EXEEXT): $(test_download_OBJECTS) $(test_download_DEPENDENCIES) $(EXTRA_test_download_DEPENDENCIES)
@rm -f test-download$(EXEEXT)
$(LINK) $(test_download_OBJECTS) $(test_download_LDADD) $(LIBS)
test-ipc$(EXEEXT): $(test_ipc_OBJECTS) $(test_ipc_DEPENDENCIES) $(EXTRA_test_ipc_DEPENDENCIES)
@rm -f test-ipc$(EXEEXT)
$(LINK) $(test_ipc_OBJECTS) $(test_ipc_LDADD) $(LIBS)
test-xmlrpc$(EXEEXT): $(test_xmlrpc_OBJECTS) $(test_xmlrpc_DEPENDENCIES) $(EXTRA_test_xmlrpc_DEPENDENCIES)
@rm -f test-xmlrpc$(EXEEXT)
$(LINK) $(test_xmlrpc_OBJECTS) $(test_xmlrpc_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-conf.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-download.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-ipc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-xmlrpc.Po@am__quote@
.c.o:
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c $<
.c.obj:
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
set x; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: CTAGS
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(PROGRAMS)
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-noinstPROGRAMS mostlyclean-am
distclean: distclean-am
-rm -rf ./$(DEPDIR)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
html-am:
info: info-am
info-am:
install-data-am:
install-dvi: install-dvi-am
install-dvi-am:
install-exec-am:
install-html: install-html-am
install-html-am:
install-info: install-info-am
install-info-am:
install-man:
install-pdf: install-pdf-am
install-pdf-am:
install-ps: install-ps-am
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -rf ./$(DEPDIR)
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am:
.MAKE: install-am install-strip
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
clean-noinstPROGRAMS ctags distclean distclean-compile \
distclean-generic distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \
install-info-am install-man install-pdf install-pdf-am \
install-ps install-ps-am install-strip installcheck \
installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
uninstall-am
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
uget-1.10.4/tests/test-conf.c 0000664 0001750 0001750 00000002315 12165471260 012701 0000000 0000000 #include
#include
#include
void test_conf ()
{
UgMarkup* markup;
UgDataset* dataset;
UgetProgress* progress;
UgetHttp* http;
UgetFtp* ftp;
markup = ug_markup_new ();
dataset = ug_dataset_new ();
progress = ug_dataset_realloc (dataset, UgetProgressInfo, 0);
http = ug_dataset_realloc (dataset, UgetHttpInfo, 0);
ftp = ug_dataset_realloc (dataset, UgetFtpInfo, 0);
progress->total = 1484889;
http->redirection_limit = 10;
http->referrer = g_strdup ("http://123.123.123.1/ref");
ftp->user = g_strdup ("ftpuser");
ftp->password = g_strdup ("ftppassword");
ug_markup_write_start (markup, "test.ug.xml", TRUE);
ug_data_write_markup ((UgData*) dataset, markup);
ug_markup_write_end (markup);
ug_dataset_unref (dataset);
dataset = ug_dataset_new ();
if (ug_markup_parse ("test.ug.xml", &ug_data_parser, dataset)) {
progress = ug_dataset_realloc (dataset, UgetProgressInfo, 0);
http = ug_dataset_realloc (dataset, UgetHttpInfo, 0);
ftp = ug_dataset_realloc (dataset, UgetFtpInfo, 0);
}
ug_dataset_unref (dataset);
ug_markup_free (markup);
}
int main (int argc, char* argv[])
{
uglib_init ();
test_conf ();
uglib_finalize ();
return 0;
}
uget-1.10.4/missing 0000755 0001750 0001750 00000024152 11736361705 011076 0000000 0000000 #! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2012-01-06.13; # UTC
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard , 1996.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
if test $# -eq 0; then
echo 1>&2 "Try \`$0 --help' for more information"
exit 1
fi
run=:
sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
# In the cases where this matters, `missing' is being run in the
# srcdir already.
if test -f configure.ac; then
configure_ac=configure.ac
else
configure_ac=configure.in
fi
msg="missing on your system"
case $1 in
--run)
# Try to run requested program, and just exit if it succeeds.
run=
shift
"$@" && exit 0
# Exit code 63 means version mismatch. This often happens
# when the user try to use an ancient version of a tool on
# a file that requires a minimum version. In this case we
# we should proceed has if the program had been absent, or
# if --run hadn't been passed.
if test $? = 63; then
run=:
msg="probably too old"
fi
;;
-h|--h|--he|--hel|--help)
echo "\
$0 [OPTION]... PROGRAM [ARGUMENT]...
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
error status if there is no known handling for PROGRAM.
Options:
-h, --help display this help and exit
-v, --version output version information and exit
--run try to run the given command, and emulate it if it fails
Supported PROGRAM values:
aclocal touch file \`aclocal.m4'
autoconf touch file \`configure'
autoheader touch file \`config.h.in'
autom4te touch the output file, or create a stub one
automake touch all \`Makefile.in' files
bison create \`y.tab.[ch]', if possible, from existing .[ch]
flex create \`lex.yy.c', if possible, from existing .c
help2man touch the output file
lex create \`lex.yy.c', if possible, from existing .c
makeinfo touch the output file
yacc create \`y.tab.[ch]', if possible, from existing .[ch]
Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
\`g' are ignored when checking the name.
Send bug reports to ."
exit $?
;;
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
echo "missing $scriptversion (GNU Automake)"
exit $?
;;
-*)
echo 1>&2 "$0: Unknown \`$1' option"
echo 1>&2 "Try \`$0 --help' for more information"
exit 1
;;
esac
# normalize program name to check for.
program=`echo "$1" | sed '
s/^gnu-//; t
s/^gnu//; t
s/^g//; t'`
# Now exit if we have it, but it failed. Also exit now if we
# don't have it and --version was passed (most likely to detect
# the program). This is about non-GNU programs, so use $1 not
# $program.
case $1 in
lex*|yacc*)
# Not GNU programs, they don't have --version.
;;
*)
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
# We have it, but it failed.
exit 1
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
# Could not run --version or --help. This is probably someone
# running `$TOOL --version' or `$TOOL --help' to check whether
# $TOOL exists and not knowing $TOOL uses missing.
exit 1
fi
;;
esac
# If it does not exist, or fails to run (possibly an outdated version),
# try to emulate it.
case $program in
aclocal*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
you modified \`acinclude.m4' or \`${configure_ac}'. You might want
to install the \`Automake' and \`Perl' packages. Grab them from
any GNU archive site."
touch aclocal.m4
;;
autoconf*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
you modified \`${configure_ac}'. You might want to install the
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
archive site."
touch configure
;;
autoheader*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
you modified \`acconfig.h' or \`${configure_ac}'. You might want
to install the \`Autoconf' and \`GNU m4' packages. Grab them
from any GNU archive site."
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
test -z "$files" && files="config.h"
touch_files=
for f in $files; do
case $f in
*:*) touch_files="$touch_files "`echo "$f" |
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
*) touch_files="$touch_files $f.in";;
esac
done
touch $touch_files
;;
automake*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
You might want to install the \`Automake' and \`Perl' packages.
Grab them from any GNU archive site."
find . -type f -name Makefile.am -print |
sed 's/\.am$/.in/' |
while read f; do touch "$f"; done
;;
autom4te*)
echo 1>&2 "\
WARNING: \`$1' is needed, but is $msg.
You might have modified some files without having the
proper tools for further handling them.
You can get \`$1' as part of \`Autoconf' from any GNU
archive site."
file=`echo "$*" | sed -n "$sed_output"`
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
if test -f "$file"; then
touch $file
else
test -z "$file" || exec >$file
echo "#! /bin/sh"
echo "# Created by GNU Automake missing as a replacement of"
echo "# $ $@"
echo "exit 0"
chmod +x $file
exit 1
fi
;;
bison*|yacc*)
echo 1>&2 "\
WARNING: \`$1' $msg. You should only need it if
you modified a \`.y' file. You may need the \`Bison' package
in order for those modifications to take effect. You can get
\`Bison' from any GNU archive site."
rm -f y.tab.c y.tab.h
if test $# -ne 1; then
eval LASTARG=\${$#}
case $LASTARG in
*.y)
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
if test -f "$SRCFILE"; then
cp "$SRCFILE" y.tab.c
fi
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
if test -f "$SRCFILE"; then
cp "$SRCFILE" y.tab.h
fi
;;
esac
fi
if test ! -f y.tab.h; then
echo >y.tab.h
fi
if test ! -f y.tab.c; then
echo 'main() { return 0; }' >y.tab.c
fi
;;
lex*|flex*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
you modified a \`.l' file. You may need the \`Flex' package
in order for those modifications to take effect. You can get
\`Flex' from any GNU archive site."
rm -f lex.yy.c
if test $# -ne 1; then
eval LASTARG=\${$#}
case $LASTARG in
*.l)
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
if test -f "$SRCFILE"; then
cp "$SRCFILE" lex.yy.c
fi
;;
esac
fi
if test ! -f lex.yy.c; then
echo 'main() { return 0; }' >lex.yy.c
fi
;;
help2man*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
you modified a dependency of a manual page. You may need the
\`Help2man' package in order for those modifications to take
effect. You can get \`Help2man' from any GNU archive site."
file=`echo "$*" | sed -n "$sed_output"`
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
if test -f "$file"; then
touch $file
else
test -z "$file" || exec >$file
echo ".ab help2man is required to generate this page"
exit $?
fi
;;
makeinfo*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
you modified a \`.texi' or \`.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy \`make' (AIX,
DU, IRIX). You might want to install the \`Texinfo' package or
the \`GNU make' package. Grab either from any GNU archive site."
# The file to touch is that specified with -o ...
file=`echo "$*" | sed -n "$sed_output"`
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
if test -z "$file"; then
# ... or it is the one specified with @setfilename ...
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
file=`sed -n '
/^@setfilename/{
s/.* \([^ ]*\) *$/\1/
p
q
}' $infile`
# ... or it is derived from the source name (dir/f.texi becomes f.info)
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
fi
# If the file does not exist, the user really needs makeinfo;
# let's fail without touching anything.
test -f $file || exit 1
touch $file
;;
*)
echo 1>&2 "\
WARNING: \`$1' is needed, and is $msg.
You might have modified some files without having the
proper tools for further handling them. Check the \`README' file,
it often tells you about the needed prerequisites for installing
this package. You may also peek at any GNU archive site, in case
some other package would contain this missing \`$1' program."
exit 1
;;
esac
exit 0
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
uget-1.10.4/compile 0000755 0001750 0001750 00000015337 11736361705 011062 0000000 0000000 #! /bin/sh
# Wrapper for compilers which do not understand '-c -o'.
scriptversion=2012-01-04.17; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010, 2012 Free
# Software Foundation, Inc.
# Written by Tom Tromey .
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# This file is maintained in Automake, please report
# bugs to or send patches to
# .
nl='
'
# We need space, tab and new line, in precisely that order. Quoting is
# there to prevent tools from complaining about whitespace usage.
IFS=" "" $nl"
file_conv=
# func_file_conv build_file lazy
# Convert a $build file to $host form and store it in $file
# Currently only supports Windows hosts. If the determined conversion
# type is listed in (the comma separated) LAZY, no conversion will
# take place.
func_file_conv ()
{
file=$1
case $file in
/ | /[!/]*) # absolute file, and not a UNC file
if test -z "$file_conv"; then
# lazily determine how to convert abs files
case `uname -s` in
MINGW*)
file_conv=mingw
;;
CYGWIN*)
file_conv=cygwin
;;
*)
file_conv=wine
;;
esac
fi
case $file_conv/,$2, in
*,$file_conv,*)
;;
mingw/*)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
cygwin/*)
file=`cygpath -m "$file" || echo "$file"`
;;
wine/*)
file=`winepath -w "$file" || echo "$file"`
;;
esac
;;
esac
}
# func_cl_wrapper cl arg...
# Adjust compile command to suit cl
func_cl_wrapper ()
{
# Assume a capable shell
lib_path=
shared=:
linker_opts=
for arg
do
if test -n "$eat"; then
eat=
else
case $1 in
-o)
# configure might choose to run compile as 'compile cc -o foo foo.c'.
eat=1
case $2 in
*.o | *.[oO][bB][jJ])
func_file_conv "$2"
set x "$@" -Fo"$file"
shift
;;
*)
func_file_conv "$2"
set x "$@" -Fe"$file"
shift
;;
esac
;;
-I*)
func_file_conv "${1#-I}" mingw
set x "$@" -I"$file"
shift
;;
-l*)
lib=${1#-l}
found=no
save_IFS=$IFS
IFS=';'
for dir in $lib_path $LIB
do
IFS=$save_IFS
if $shared && test -f "$dir/$lib.dll.lib"; then
found=yes
set x "$@" "$dir/$lib.dll.lib"
break
fi
if test -f "$dir/$lib.lib"; then
found=yes
set x "$@" "$dir/$lib.lib"
break
fi
done
IFS=$save_IFS
test "$found" != yes && set x "$@" "$lib.lib"
shift
;;
-L*)
func_file_conv "${1#-L}"
if test -z "$lib_path"; then
lib_path=$file
else
lib_path="$lib_path;$file"
fi
linker_opts="$linker_opts -LIBPATH:$file"
;;
-static)
shared=false
;;
-Wl,*)
arg=${1#-Wl,}
save_ifs="$IFS"; IFS=','
for flag in $arg; do
IFS="$save_ifs"
linker_opts="$linker_opts $flag"
done
IFS="$save_ifs"
;;
-Xlinker)
eat=1
linker_opts="$linker_opts $2"
;;
-*)
set x "$@" "$1"
shift
;;
*.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
func_file_conv "$1"
set x "$@" -Tp"$file"
shift
;;
*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
func_file_conv "$1" mingw
set x "$@" "$file"
shift
;;
*)
set x "$@" "$1"
shift
;;
esac
fi
shift
done
if test -n "$linker_opts"; then
linker_opts="-link$linker_opts"
fi
exec "$@" $linker_opts
exit 1
}
eat=
case $1 in
'')
echo "$0: No command. Try '$0 --help' for more information." 1>&2
exit 1;
;;
-h | --h*)
cat <<\EOF
Usage: compile [--help] [--version] PROGRAM [ARGS]
Wrapper for compilers which do not understand '-c -o'.
Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
arguments, and rename the output as expected.
If you are trying to build a whole package this is not the
right script to run: please start by reading the file 'INSTALL'.
Report bugs to .
EOF
exit $?
;;
-v | --v*)
echo "compile $scriptversion"
exit $?
;;
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
func_cl_wrapper "$@" # Doesn't return...
;;
esac
ofile=
cfile=
for arg
do
if test -n "$eat"; then
eat=
else
case $1 in
-o)
# configure might choose to run compile as 'compile cc -o foo foo.c'.
# So we strip '-o arg' only if arg is an object.
eat=1
case $2 in
*.o | *.obj)
ofile=$2
;;
*)
set x "$@" -o "$2"
shift
;;
esac
;;
*.c)
cfile=$1
set x "$@" "$1"
shift
;;
*)
set x "$@" "$1"
shift
;;
esac
fi
shift
done
if test -z "$ofile" || test -z "$cfile"; then
# If no '-o' option was seen then we might have been invoked from a
# pattern rule where we don't need one. That is ok -- this is a
# normal compilation that the losing compiler can handle. If no
# '.c' file was seen then we are probably linking. That is also
# ok.
exec "$@"
fi
# Name of file we expect compiler to create.
cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
# Create the lock directory.
# Note: use '[/\\:.-]' here to ensure that we don't use the same name
# that we are using for the .o file. Also, base the name on the expected
# object file name, since that is what matters with a parallel build.
lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
while true; do
if mkdir "$lockdir" >/dev/null 2>&1; then
break
fi
sleep 1
done
# FIXME: race condition here if user kills between mkdir and trap.
trap "rmdir '$lockdir'; exit 1" 1 2 15
# Run the compile.
"$@"
ret=$?
if test -f "$cofile"; then
test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
elif test -f "${cofile}bj"; then
test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
fi
rmdir "$lockdir"
exit $ret
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
uget-1.10.4/config.h.in 0000664 0001750 0001750 00000006624 12260757454 011533 0000000 0000000 /* config.h.in. Generated from configure.ac by autoheader. */
/* always defined to indicate that i18n is enabled */
#undef ENABLE_NLS
/* Have AppIndicator */
#undef HAVE_APP_INDICATOR
/* Define to 1 if you have the `bind_textdomain_codeset' function. */
#undef HAVE_BIND_TEXTDOMAIN_CODESET
/* Define to 1 if you have the `dcgettext' function. */
#undef HAVE_DCGETTEXT
/* Define if the GNU gettext() function is already present or preinstalled. */
#undef HAVE_GETTEXT
/* Define to 1 if gnutls support is required. */
#undef HAVE_GNUTLS
/* Define to 1 if gstreamer support is required. */
#undef HAVE_GSTREAMER
/* Define to 1 if you have the header file. */
#undef HAVE_INTTYPES_H
/* Define if your file defines LC_MESSAGES. */
#undef HAVE_LC_MESSAGES
/* Define to 1 if libnotify support is required. */
#undef HAVE_LIBNOTIFY
/* Define to 1 if libpwmd support is required. */
#undef HAVE_LIBPWMD
/* Define to 1 if you have the header file. */
#undef HAVE_LOCALE_H
/* Define to 1 if you have the header file. */
#undef HAVE_MEMORY_H
/* Define to 1 to enable aria2 plug-in. */
#undef HAVE_PLUGIN_ARIA2
/* Define to 1 to enable cURL plug-in. */
#undef HAVE_PLUGIN_CURL
/* Define to 1 if you have the header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the header file. */
#undef HAVE_UNISTD_H
/* Define to 1 to make temporary download files hidden. */
#undef HIDE_TEMPORARY_FILE
/* Define the location where the catalogs will be installed */
#undef LOCALEDIR
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
#undef NO_MINUS_C_MINUS_O
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Enable extensions on AIX 3, Interix. */
#ifndef _ALL_SOURCE
# undef _ALL_SOURCE
#endif
/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# undef _GNU_SOURCE
#endif
/* Enable threading extensions on Solaris. */
#ifndef _POSIX_PTHREAD_SEMANTICS
# undef _POSIX_PTHREAD_SEMANTICS
#endif
/* Enable extensions on HP NonStop. */
#ifndef _TANDEM_SOURCE
# undef _TANDEM_SOURCE
#endif
/* Enable general extensions on Solaris. */
#ifndef __EXTENSIONS__
# undef __EXTENSIONS__
#endif
/* Version number of package */
#undef VERSION
/* Define to 1 if on MINIX. */
#undef _MINIX
/* Define to 2 if the system does not provide POSIX.1 features except with
this defined. */
#undef _POSIX_1_SOURCE
/* Define to 1 if you need to in order for `stat' and other things to work. */
#undef _POSIX_SOURCE
uget-1.10.4/Makefile.am 0000664 0001750 0001750 00000000342 11740440107 011515 0000000 0000000 # intltool : add "po" in SUBDIRS
SUBDIRS = \
uglib \
uget-gtk \
uget-cmd \
tests \
pixmaps \
sounds \
po \
Windows
EXTRA_DIST = uget-gtk.desktop
appsdir = $(datadir)/applications
apps_DATA = uget-gtk.desktop
uget-1.10.4/Windows/ 0000775 0001750 0001750 00000000000 12260772033 011200 5 0000000 0000000 uget-1.10.4/Windows/msvc/ 0000775 0001750 0001750 00000000000 12260772033 012150 5 0000000 0000000 uget-1.10.4/Windows/msvc/uget.sln 0000664 0001750 0001750 00000010570 11740440107 013551 0000000 0000000
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual C++ Express 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "uglib", "uglib.vcproj", "{742B79B4-66D8-471B-8720-BC789D706356}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test-conf", "test-conf.vcproj", "{A40E98A3-72E3-4AA4-A0FD-BB54AF47E512}"
ProjectSection(ProjectDependencies) = postProject
{742B79B4-66D8-471B-8720-BC789D706356} = {742B79B4-66D8-471B-8720-BC789D706356}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test-download", "test-download.vcproj", "{DCF37A71-2C88-4A41-A9EA-41CC56C82538}"
ProjectSection(ProjectDependencies) = postProject
{742B79B4-66D8-471B-8720-BC789D706356} = {742B79B4-66D8-471B-8720-BC789D706356}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test-ipc", "test-ipc.vcproj", "{71F0938B-F2FC-467C-97DF-4C06FBBC0CE1}"
ProjectSection(ProjectDependencies) = postProject
{742B79B4-66D8-471B-8720-BC789D706356} = {742B79B4-66D8-471B-8720-BC789D706356}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "uget-gtk", "uget-gtk.vcproj", "{9D164547-3F37-4C14-BCCE-91EB2F3DC317}"
ProjectSection(ProjectDependencies) = postProject
{742B79B4-66D8-471B-8720-BC789D706356} = {742B79B4-66D8-471B-8720-BC789D706356}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "uget-cmd", "uget-cmd.vcproj", "{EC1E1B1A-CA74-4BB1-B3B4-0DC1BF68D2EA}"
ProjectSection(ProjectDependencies) = postProject
{742B79B4-66D8-471B-8720-BC789D706356} = {742B79B4-66D8-471B-8720-BC789D706356}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test-xmlrpc", "test-xmlrpc.vcproj", "{F43E17FF-786B-43B0-8702-9998797C5FD6}"
ProjectSection(ProjectDependencies) = postProject
{742B79B4-66D8-471B-8720-BC789D706356} = {742B79B4-66D8-471B-8720-BC789D706356}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{742B79B4-66D8-471B-8720-BC789D706356}.Debug|Win32.ActiveCfg = Debug|Win32
{742B79B4-66D8-471B-8720-BC789D706356}.Debug|Win32.Build.0 = Debug|Win32
{742B79B4-66D8-471B-8720-BC789D706356}.Release|Win32.ActiveCfg = Release|Win32
{742B79B4-66D8-471B-8720-BC789D706356}.Release|Win32.Build.0 = Release|Win32
{A40E98A3-72E3-4AA4-A0FD-BB54AF47E512}.Debug|Win32.ActiveCfg = Debug|Win32
{A40E98A3-72E3-4AA4-A0FD-BB54AF47E512}.Debug|Win32.Build.0 = Debug|Win32
{A40E98A3-72E3-4AA4-A0FD-BB54AF47E512}.Release|Win32.ActiveCfg = Release|Win32
{A40E98A3-72E3-4AA4-A0FD-BB54AF47E512}.Release|Win32.Build.0 = Release|Win32
{DCF37A71-2C88-4A41-A9EA-41CC56C82538}.Debug|Win32.ActiveCfg = Debug|Win32
{DCF37A71-2C88-4A41-A9EA-41CC56C82538}.Debug|Win32.Build.0 = Debug|Win32
{DCF37A71-2C88-4A41-A9EA-41CC56C82538}.Release|Win32.ActiveCfg = Release|Win32
{DCF37A71-2C88-4A41-A9EA-41CC56C82538}.Release|Win32.Build.0 = Release|Win32
{71F0938B-F2FC-467C-97DF-4C06FBBC0CE1}.Debug|Win32.ActiveCfg = Debug|Win32
{71F0938B-F2FC-467C-97DF-4C06FBBC0CE1}.Debug|Win32.Build.0 = Debug|Win32
{71F0938B-F2FC-467C-97DF-4C06FBBC0CE1}.Release|Win32.ActiveCfg = Release|Win32
{71F0938B-F2FC-467C-97DF-4C06FBBC0CE1}.Release|Win32.Build.0 = Release|Win32
{9D164547-3F37-4C14-BCCE-91EB2F3DC317}.Debug|Win32.ActiveCfg = Debug|Win32
{9D164547-3F37-4C14-BCCE-91EB2F3DC317}.Debug|Win32.Build.0 = Debug|Win32
{9D164547-3F37-4C14-BCCE-91EB2F3DC317}.Release|Win32.ActiveCfg = Release|Win32
{9D164547-3F37-4C14-BCCE-91EB2F3DC317}.Release|Win32.Build.0 = Release|Win32
{EC1E1B1A-CA74-4BB1-B3B4-0DC1BF68D2EA}.Debug|Win32.ActiveCfg = Debug|Win32
{EC1E1B1A-CA74-4BB1-B3B4-0DC1BF68D2EA}.Debug|Win32.Build.0 = Debug|Win32
{EC1E1B1A-CA74-4BB1-B3B4-0DC1BF68D2EA}.Release|Win32.ActiveCfg = Release|Win32
{EC1E1B1A-CA74-4BB1-B3B4-0DC1BF68D2EA}.Release|Win32.Build.0 = Release|Win32
{F43E17FF-786B-43B0-8702-9998797C5FD6}.Debug|Win32.ActiveCfg = Debug|Win32
{F43E17FF-786B-43B0-8702-9998797C5FD6}.Debug|Win32.Build.0 = Debug|Win32
{F43E17FF-786B-43B0-8702-9998797C5FD6}.Release|Win32.ActiveCfg = Release|Win32
{F43E17FF-786B-43B0-8702-9998797C5FD6}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
uget-1.10.4/Windows/msvc/test-ipc.vcproj 0000664 0001750 0001750 00000011072 12007236355 015047 0000000 0000000
uget-1.10.4/Windows/msvc/uglib.vcproj 0000664 0001750 0001750 00000014356 12165471260 014432 0000000 0000000
uget-1.10.4/Windows/msvc/test-xmlrpc.vcproj 0000664 0001750 0001750 00000011177 12007236355 015607 0000000 0000000
uget-1.10.4/Windows/msvc/test-conf.vcproj 0000664 0001750 0001750 00000011125 12007236355 015220 0000000 0000000
uget-1.10.4/Windows/msvc/msvc-config.txt 0000664 0001750 0001750 00000004235 12010700575 015043 0000000 0000000 --- include dir --- (C/C++ - General - Additional Include Directories)
uglib
D:\devpack\gtk3\include
D:\devpack\gtk3\include\glib-2.0
D:\devpack\gtk3\lib\glib-2.0\include
D:\devpack\curl-msvc\include
..\..\uglib
uget-cmd
D:\devpack\gtk3\include
D:\devpack\gtk3\include\glib-2.0
D:\devpack\gtk3\lib\glib-2.0\include
D:\devpack\curl-msvc\include
..\..\uglib
..\..\uget-cmd
uget-gtk
D:\devpack\gtk3\include
D:\devpack\gtk3\include\glib-2.0
D:\devpack\gtk3\include\gtk-3.0
D:\devpack\gtk3\include\gdk-pixbuf-2.0
D:\devpack\gtk3\include\pango-1.0
D:\devpack\gtk3\include\atk-1.0
D:\devpack\gtk3\include\cairo
D:\devpack\gtk3\lib\glib-2.0\include
D:\devpack\gtk3\lib\gtk-3.0\include
D:\devpack\curl-msvc\include
..\..\uglib
..\..\uget-gtk
--- lib dir --- (Linker - General - Additional Library Directories)
D:\devpack\gtk3\lib
D:\devpack\curl-msvc\lib
Debug
Release
--- lib --- (Linker - Input - Additional Dependencies)
glib-2.0.lib
gthread-2.0.lib
gmodule-2.0.lib
gobject-2.0.lib
gtk-3.lib
gdk-3.lib
gdk_pixbuf-2.0.lib
pango-1.0.lib
pangowin32-1.0.lib
atk-1.0.lib
cairo.lib
intl.lib
libcurl.lib
Ws2_32.lib
Winmm.lib
--- project (solution) ---
1. Caeate
Name : ProjectName
Location : path\ProjectDir
Don't "Create directory for solution"
2. Rename path\ProjectDir\ProjectName to path\ProjectDir\msvc
3. Commit follow file only
*.sln
*.vcproj
--- project type ---
1. Windows Console
(Linker - System - SubSystem) - Select "Console"
(C/C++ - Preprocessor - Preprocessor Definitions) - add "_CONSOLE", remove "_WINDOWS"
2. Windows GUI
(Linker - System - SubSystem) - Select "Windows"
(C/C++ - Preprocessor - Preprocessor Definitions) - add "_WINDOWS", remove "_CONSOLE"
3. Windows Dynamic Library (DLL)
(General - Configuration Type) - Select "Dynamic Library (.dll)"
(C/C++ - Preprocessor - Preprocessor Definitions) - add "_USRDLL"
4. Windows Static Library (LIB)
(General - Configuration Type) - Select "Static Library (.lib)"
(C/C++ - Preprocessor - Preprocessor Definitions) - add "_LIB"
--- debug ---
(Debug - Environment) - add "PATH=C:\Program Files\gtk3-Runtime\bin"
or add "PATH=C:\Program Files\Common Files\GTK\3.0\bin"
uget-1.10.4/Windows/msvc/uget-gtk.vcproj 0000664 0001750 0001750 00000017621 12010700575 015046 0000000 0000000
uget-1.10.4/Windows/msvc/test-download.vcproj 0000664 0001750 0001750 00000011233 12007236355 016102 0000000 0000000
uget-1.10.4/Windows/msvc/uget-cmd.vcproj 0000664 0001750 0001750 00000011411 12007236355 015021 0000000 0000000
uget-1.10.4/Windows/make-pot.bat 0000664 0001750 0001750 00000001063 11740440107 013321 0000000 0000000 rem --- create uget-filelist.txt
dir /b ..\uglib\*.c ..\uglib\*.h ..\uget-gtk\*.c ..\uget-gtk\*.h > uget-filelist.txt
rem --- GetText for Windows
rem --- http://sourceforge.net/projects/gnuwin32/
rem --- http://gnuwin32.sourceforge.net/packages/gettext.htm
xgettext -C -s -D ..\src -D ..\uget-gtk -f uget-filelist.txt --keyword=_ --keyword=N_ -o ..\po\uget.pot
rem --- merge files
rem msgmerge ..\po\de.po ..\po\uget.pot
rem msgmerge ..\po\es.po ..\po\uget.pot
rem msgmerge ..\po\zh_CN.po ..\po\uget.pot
rem msgmerge ..\po\zh_TW.po ..\po\uget.pot
pause
uget-1.10.4/Windows/Makefile.am 0000664 0001750 0001750 00000001130 12007227722 013146 0000000 0000000 EXTRA_DIST = \
make-pot.bat \
nsis/uget-no-gtk.nsi \
nsis/License-install.txt \
resources/uget.rc \
resources/uget-icon.ico \
msvc/msvc-config.txt \
msvc/test-conf.vcproj \
msvc/test-download.vcproj \
msvc/test-ipc.vcproj \
msvc/test-xmlrpc.vcproj \
msvc/uget.sln \
msvc/uget-cmd.vcproj \
msvc/uget-gtk.vcproj \
msvc/uglib.vcproj \
CodeBlocks/mingw-config.txt \
CodeBlocks/test-conf.cbp \
CodeBlocks/test-download.cbp \
CodeBlocks/test-ipc.cbp \
CodeBlocks/test-xmlrpc.cbp \
CodeBlocks/uget.workspace \
CodeBlocks/uget-cmd.cbp \
CodeBlocks/uget-gtk.cbp \
CodeBlocks/uglib.cbp
uget-1.10.4/Windows/CodeBlocks/ 0000775 0001750 0001750 00000000000 12260772033 013210 5 0000000 0000000 uget-1.10.4/Windows/CodeBlocks/uget-cmd.cbp 0000664 0001750 0001750 00000004031 12007236355 015322 0000000 0000000
uget-1.10.4/Windows/CodeBlocks/uget-gtk.cbp 0000664 0001750 0001750 00000012706 12226461337 015357 0000000 0000000
uget-1.10.4/Windows/CodeBlocks/test-conf.cbp 0000664 0001750 0001750 00000003322 12007236355 015521 0000000 0000000
uget-1.10.4/Windows/CodeBlocks/test-download.cbp 0000664 0001750 0001750 00000003342 12007236355 016405 0000000 0000000
uget-1.10.4/Windows/CodeBlocks/test-xmlrpc.cbp 0000664 0001750 0001750 00000003402 12007236355 016100 0000000 0000000
uget-1.10.4/Windows/CodeBlocks/uglib.cbp 0000664 0001750 0001750 00000007771 12165471260 014736 0000000 0000000
uget-1.10.4/Windows/CodeBlocks/uget.workspace 0000664 0001750 0001750 00000000677 11740440107 016022 0000000 0000000
uget-1.10.4/Windows/CodeBlocks/mingw-config.txt 0000664 0001750 0001750 00000001625 12010700575 016254 0000000 0000000 --- include dir ---
uglib
D:\devpack\gtk3\include
D:\devpack\gtk3\include\glib-2.0
D:\devpack\gtk3\lib\glib-2.0\include
D:\devpack\curl-mingw\include
..\..\uglib
uget-cmd
D:\devpack\gtk3\include
D:\devpack\gtk3\include\glib-2.0
D:\devpack\gtk3\lib\glib-2.0\include
D:\devpack\curl-mingw\include
..\..\uglib
..\..\uget-cmd
uget-gtk
D:\devpack\gtk3\include
D:\devpack\gtk3\include\glib-2.0
D:\devpack\gtk3\include\gtk-3.0
D:\devpack\gtk3\include\gdk-pixbuf-2.0
D:\devpack\gtk3\include\pango-1.0
D:\devpack\gtk3\include\atk-1.0
D:\devpack\gtk3\include\cairo
D:\devpack\gtk3\lib\glib-2.0\include
D:\devpack\gtk3\lib\gtk-3.0\include
D:\devpack\curl-mingw\include
..\..\uglib
..\..\uget-gtk
--- lib dir ---
D:\devpack\gtk3\lib
D:\devpack\curl-mingw\lib
Debug
Release
--- lib ---
uglib
glib-2.0.dll
gthread-2.0.dll
gmodule-2.0.dll
gobject-2.0.dll
gtk-3.dll
gdk-3.dll
gdk_pixbuf-2.0.dll
intl.dll
curldll
ws2_32
winmm
uget-1.10.4/Windows/CodeBlocks/test-ipc.cbp 0000664 0001750 0001750 00000003316 12007236355 015352 0000000 0000000
uget-1.10.4/Windows/resources/ 0000775 0001750 0001750 00000000000 12260772033 013212 5 0000000 0000000 uget-1.10.4/Windows/resources/uget-icon.ico 0000664 0001750 0001750 00000042206 12165471260 015526 0000000 0000000 h F 6 00 % ( ^4NW.S-S-S-S-S-S-S-S-S-S-S-S-W.^4N[2*F.N.N.N.N.N.N.N.N.N.N.N.N*F[2!]54R4R4R4R4R4R4R4R4R4R4R4R4R4R!]5&a::X:X:X:X/|F l+ q* r+ p* o* q*&s69V:X&a:*f>@^=Z-u@,t?o${% '%w2+v>x${%")2{B@^*f>/lCEc%j2k o!w$%+3:B]Ec%o2x$&,6BEc/lC4pHKh"f,l!-s<{%07CYKhKhFa n)%,9EKh4pH9uMQm#g.l!AWw&5{CJbQmQmJd6{I!y(:FQm9uM?zTWs%i.k E[p!'y,7{AWsWs5vEf t%;}FWs?zTDX]x/o<$i-J_g p&5x?]x]xMc=}N?PPf]xDXI]c~c~c~Ncbl#5u?c~c~;xJ`l#={Gc~I]Pciiibz` h"6s>ii>zMa&m*A|KiPcViooooVi-l52q;0o9&h0&g/)k35s?HUoVi\p}uuuuuuuuuuuu}\p_sҌʪʪʪʪʪʪʪʪʪʪʪʪ_sdwEaubvbvbvbvbvbvbvbvbvbvbvbvaudwE ( 0 + { { + 4,yF:X>Z@\D_E`HbJeMfMfJeHbE`D_@\>Z:X,yF4 )xC/N0N1O3Q4R5R5R5R5R5R5R5R5R4R3Q1O0N/N)xC "1P4R8V=Z?\A]A];U5K7N7N7N7N7N2|F6M