mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
Add redef.rb and bump Chromebrew version (#2887)
Eliminate the need to redefine constants
This commit is contained in:
4
crew
4
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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user