Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
899d789a
Commit
899d789a
authored
Jun 27, 2017
by
Kazushi (Jam) Marukawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change crew to not ignore error messages and check binary existence
parent
817b4ea0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
crew
crew
+15
-5
No files found.
crew
View file @
899d789a
...
...
@@ -28,7 +28,7 @@ else
end
#
Set
CREW_NOT_COMPRESS
from
environment
variable
CREW_NOT_COMPRESS
=
`
bash
-
c
"type compressdoc 2> /dev/null"
`.
empty
?
||
ENV
[
"CREW_NOT_COMPRESS"
]
CREW_NOT_COMPRESS
=
ENV
[
"CREW_NOT_COMPRESS"
]
#
Set
CREW_NOT_STRIP
from
environment
variable
CREW_NOT_STRIP
=
ENV
[
"CREW_NOT_STRIP"
]
...
...
@@ -425,13 +425,23 @@ def build_and_preconfigure (target_dir)
end
end
def
compress_doc
(
dir
)
#
check
whether
crew
should
compress
return
if
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"
system
"compressdoc --gzip -9 #{dir}"
end
end
def
prepare_package
(
destdir
)
Dir
.
chdir
destdir
do
#
compress
manual
files
system
"compressdoc --gzip -9 #{destdir}#{CREW_PREFIX}/man > /dev/null"
unless
CREW_NOT_COMPRESS
system
"compressdoc --gzip -9 #{destdir}#{CREW_PREFIX}/info > /dev/null"
unless
CREW_NOT_COMPRESS
system
"compressdoc --gzip -9 #{destdir}#{CREW_PREFIX}/share/man > /dev/null"
unless
CREW_NOT_COMPRESS
system
"compressdoc --gzip -9 #{destdir}#{CREW_PREFIX}/share/info > /dev/null"
unless
CREW_NOT_COMPRESS
compress_doc
"#{destdir}#{CREW_PREFIX}/man"
compress_doc
"#{destdir}#{CREW_PREFIX}/info"
compress_doc
"#{destdir}#{CREW_PREFIX}/share/man"
compress_doc
"#{destdir}#{CREW_PREFIX}/share/info"
#
create
directory
list
system
"find . -type f > ../filelist"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment