Skip to content

Commit

Permalink
Move examples from example/simple to example/.
Browse files Browse the repository at this point in the history
  • Loading branch information
jas4711 committed Dec 19, 2009
1 parent dd81bda commit b5e3586
Show file tree
Hide file tree
Showing 24 changed files with 36 additions and 39 deletions.
2 changes: 1 addition & 1 deletion buildconf
Expand Up @@ -22,6 +22,6 @@ ${AUTOHEADER:-autoheader}
# 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
# 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}
${AUTOMAKE:-automake} --add-missing --copy
1 change: 0 additions & 1 deletion configure.ac
Expand Up @@ -252,7 +252,6 @@ AC_CONFIG_FILES([Makefile
src/Makefile
tests/Makefile
example/Makefile
example/simple/Makefile
docs/Makefile
libssh2.pc])
AC_OUTPUT
18 changes: 18 additions & 0 deletions example/.gitignore
@@ -1,2 +1,20 @@
Makefile
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
16 changes: 15 additions & 1 deletion example/Makefile.am
@@ -1,2 +1,16 @@
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 0 additions & 18 deletions example/simple/.gitignore

This file was deleted.

16 changes: 0 additions & 16 deletions example/simple/Makefile.am

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion nw/test/Makefile.netware
Expand Up @@ -28,7 +28,7 @@ endif
LINK_STATIC = 1

# 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))))
VERSION = $(LIBSSH2_VERSION)
COPYR = Copyright (c) 2004-2009, Sara Golemon <sarag@libssh2.org>
Expand Down
2 changes: 1 addition & 1 deletion win32/test/Makefile.win32
Expand Up @@ -125,7 +125,7 @@ else
DS = \\
endif

vpath %.c ../../example/simple
vpath %.c ../../example

.PRECIOUS: $(OBJDIR)/%.o $(OBJDIR)/%.rc $(OBJDIR)/%.res

Expand Down

0 comments on commit b5e3586

Please sign in to comment.