1
1

Move examples from example/simple to example/.

Этот коммит содержится в:
Simon Josefsson 2009-12-19 10:54:45 +01:00
родитель dd81bda112
Коммит b5e358618b
24 изменённых файлов: 36 добавлений и 39 удалений

Просмотреть файл

@ -22,6 +22,6 @@ ${AUTOHEADER:-autoheader}
# copy the private libssh2_config.h.in to the examples dir so that # copy the private libssh2_config.h.in to the examples dir so that
# it can be included without pointing the include path to the private # it can be included without pointing the include path to the private
# source dir # source dir
cp src/libssh2_config.h.in example/simple/config.h.in cp src/libssh2_config.h.in example/config.h.in
${AUTOCONF:-autoconf} ${AUTOCONF:-autoconf}
${AUTOMAKE:-automake} --add-missing --copy ${AUTOMAKE:-automake} --add-missing --copy

Просмотреть файл

@ -252,7 +252,6 @@ AC_CONFIG_FILES([Makefile
src/Makefile src/Makefile
tests/Makefile tests/Makefile
example/Makefile example/Makefile
example/simple/Makefile
docs/Makefile docs/Makefile
libssh2.pc]) libssh2.pc])
AC_OUTPUT AC_OUTPUT

18
example/.gitignore поставляемый
Просмотреть файл

@ -1,2 +1,20 @@
Makefile Makefile
Makefile.in Makefile.in
*.gcno
*.gcda
scp
scp_nonblock
scp_write
scp_write_nonblock
sftp
sftp_nonblock
sftpdir
sftpdir_nonblock
ssh2
sftp_RW_nonblock
sftp_mkdir
sftp_mkdir_nonblock
sftp_write
sftp_write_nonblock
config.h.in
ssh2_exec

Просмотреть файл

@ -1,2 +1,16 @@
AUTOMAKE_OPTIONS = foreign nostdinc AUTOMAKE_OPTIONS = foreign nostdinc
SUBDIRS = simple
# samples
noinst_PROGRAMS = ssh2 \
scp scp_nonblock \
scp_write scp_write_nonblock \
sftp sftp_nonblock \
sftp_write sftp_write_nonblock \
sftp_mkdir sftp_mkdir_nonblock \
sftp_RW_nonblock \
sftpdir sftpdir_nonblock ssh2_exec
# the examples need the $(top_builddir)/src since when building outside of the
# source dir they still need to reach the libssh2_config.h header
AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_builddir)/src
LDADD = $(top_builddir)/src/libssh2.la

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

18
example/simple/.gitignore поставляемый
Просмотреть файл

@ -1,18 +0,0 @@
*.gcno
*.gcda
scp
scp_nonblock
scp_write
scp_write_nonblock
sftp
sftp_nonblock
sftpdir
sftpdir_nonblock
ssh2
sftp_RW_nonblock
sftp_mkdir
sftp_mkdir_nonblock
sftp_write
sftp_write_nonblock
config.h.in
ssh2_exec

Просмотреть файл

@ -1,16 +0,0 @@
AUTOMAKE_OPTIONS = foreign nostdinc
# samples
noinst_PROGRAMS = ssh2 \
scp scp_nonblock \
scp_write scp_write_nonblock \
sftp sftp_nonblock \
sftp_write sftp_write_nonblock \
sftp_mkdir sftp_mkdir_nonblock \
sftp_RW_nonblock \
sftpdir sftpdir_nonblock ssh2_exec
# the examples need the $(top_builddir)/src since when building outside of the
# source dir they still need to reach the libssh2_config.h header
AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_builddir)/src
LDADD = $(top_builddir)/src/libssh2.la

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

@ -28,7 +28,7 @@ endif
LINK_STATIC = 1 LINK_STATIC = 1
# Edit the vars below to change NLM target settings. # Edit the vars below to change NLM target settings.
SAMPLES = ../../example/simple SAMPLES = ../../example
TARGETS := $(filter-out x11.nlm,$(patsubst $(SAMPLES)/%.c,%.nlm,$(strip $(wildcard $(SAMPLES)/*.c)))) TARGETS := $(filter-out x11.nlm,$(patsubst $(SAMPLES)/%.c,%.nlm,$(strip $(wildcard $(SAMPLES)/*.c))))
VERSION = $(LIBSSH2_VERSION) VERSION = $(LIBSSH2_VERSION)
COPYR = Copyright (c) 2004-2009, Sara Golemon <sarag@libssh2.org> COPYR = Copyright (c) 2004-2009, Sara Golemon <sarag@libssh2.org>

Просмотреть файл

@ -125,7 +125,7 @@ else
DS = \\ DS = \\
endif endif
vpath %.c ../../example/simple vpath %.c ../../example
.PRECIOUS: $(OBJDIR)/%.o $(OBJDIR)/%.rc $(OBJDIR)/%.res .PRECIOUS: $(OBJDIR)/%.o $(OBJDIR)/%.rc $(OBJDIR)/%.res