diff --git a/crew b/crew index 91fb2614c..cf947aa1b 100755 --- a/crew +++ b/crew @@ -523,7 +523,7 @@ end def compress_doc (dir) # check whether crew should compress - return if CREW_NOT_COMPRESS || !File.exist?("#{CREW_PREFIX}/bin/compressdoc") + return if CREW_NOT_COMPRESS || ENV['CREW_NOT_COMPRESS'] || !File.exist?("#{CREW_PREFIX}/bin/compressdoc") if Dir.exist? dir system "find #{dir} -type f ! -perm -200 | xargs -r chmod u+w" @@ -564,7 +564,7 @@ end def strip_find_files (find_cmd, strip_option = "") # check whether crew should strip - return if CREW_NOT_STRIP || !File.exist?("#{CREW_PREFIX}/bin/strip") + return if CREW_NOT_STRIP || ENV['CREW_NOT_STRIP'] || !File.exist?("#{CREW_PREFIX}/bin/strip") # run find_cmd and strip only ar or ELF files system "#{find_cmd} | xargs -r chmod u+w" diff --git a/lib/const.rb b/lib/const.rb index 7def2483a..b602bf44e 100644 --- a/lib/const.rb +++ b/lib/const.rb @@ -1,6 +1,6 @@ # Defines common constants used in different parts of crew -CREW_VERSION = '1.0.3' +CREW_VERSION = '1.0.4' ARCH = `uname -m`.strip ARCH_LIB = if ARCH == 'x86_64' then 'lib64' else 'lib' end