Skip to content

Instantly share code, notes, and snippets.

@syuu1228
Created June 21, 2014 06:47
Show Gist options
  • Save syuu1228/cd34a4afeaeb69e78d87 to your computer and use it in GitHub Desktop.
Save syuu1228/cd34a4afeaeb69e78d87 to your computer and use it in GitHub Desktop.
diff --git a/ruby/Makefile b/ruby/Makefile
index 0544dd3..252d816 100644
--- a/ruby/Makefile
+++ b/ruby/Makefile
@@ -11,12 +11,12 @@ usr.manifest:
echo '/hello.rb: $${MODULE_DIR}/hello.rb' >> usr.manifest
echo '/webrick.rb: $${MODULE_DIR}/webrick.rb' >> usr.manifest
echo '/echoserver.rb: $${MODULE_DIR}/echoserver.rb' >> usr.manifest
+ echo '/hoge/**: $${MODULE_DIR}/rails/hoge/**' >> usr.manifest
echo '/libruby.so.2.1: $${MODULE_DIR}/upstream/ruby/libruby.so' >> usr.manifest
echo '/usr/lib/ruby/2.1.0/**: $${MODULE_DIR}/upstream/ruby/lib/**' >> usr.manifest
echo '/usr/lib/ruby/2.1.0/x86_64-linux/rbconfig.rb: $${MODULE_DIR}/upstream/ruby/rbconfig.rb' >> usr.manifest
echo '/usr/lib/ruby/2.1.0/x86_64-linux/**: $${MODULE_DIR}/upstream/ruby/.ext/x86_64-linux/**' >> usr.manifest
- ldd ruby.so | egrep 'libcrypt|libgmp' | \
- sed 's/ *[^ ] *\(.*\) => \(.*\) .*/\/\1: \2/' \
+ find upstream/ruby/.ext/x86_64-linux/ -name '*.so' -exec ldd {} \;|awk '{print $$1,":",$$3}'|grep "/lib64"|grep -v "ld-linux"|grep -v "libc.so"|grep -v "libpthread.so"|grep -v "libdl.so"|grep -v "libm.so"|sort|uniq|sed -e "s/ //" \
>> usr.manifest
: > bootfs.manifest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment