Skip to content

Commit

Permalink
rename example -> examples
Browse files Browse the repository at this point in the history
  • Loading branch information
plicease committed May 2, 2020
1 parent 9c18e36 commit e58ae9d
Show file tree
Hide file tree
Showing 25 changed files with 9 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/FFI-Platypus-Lang-Go-*
/.build
/example/*.so
/example/*.h
/blib/
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.
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.
5 changes: 4 additions & 1 deletion lib/FFI/Build/File/GoMod.pm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ use File::chdir;
=head1 DESCRIPTION
File class for Go Modules.
File class for Go Modules. This works like the other
L<FFI::Build> file types. For a complete example,
see the C<examples/Awesome-FFI> directory that comes
with the L<FFI::Platypus::Lang::Go> distribution.
=cut

Expand Down
6 changes: 3 additions & 3 deletions maint/import-gohttplib
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

set -ex

rm -rf example/GoHttpLib/ffi example/GoHttpLib/plicease-gohttplib-*
mkdir -p example/GoHttpLib
cd example/GoHttpLib
rm -rf examples/GoHttpLib/ffi examples/GoHttpLib/plicease-gohttplib-*
mkdir -p examples/GoHttpLib
cd examples/GoHttpLib
curl -L https://github.com/plicease/gohttplib/tarball/master | tar zxvf -
mv plicease-gohttplib-* ffi
cd ffi
Expand Down
4 changes: 2 additions & 2 deletions t/ffi_build_file_gomod.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use File::Glob qw( bsd_glob );

subtest 'basic' => sub {

foreach my $t (bsd_glob('example/Awesome-FFI/t/*.t'))
foreach my $t (bsd_glob('examples/Awesome-FFI/t/*.t'))
{
my @command = ($^X, '-Iexample/Awesome-FFI/lib', $t);
my @command = ($^X, '-Iexamples/Awesome-FFI/lib', $t);
my($out, $ret) = capture_merged {
print "+@command";
system @command;
Expand Down

0 comments on commit e58ae9d

Please sign in to comment.