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
Łukasz Nowak
chromebrew
Commits
3f70ddf1
Commit
3f70ddf1
authored
May 06, 2020
by
Casey Strouse
Committed by
GitHub
May 06, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4057 from uberhacker/add-CREW_MAN_PREFIX-constant
Add CREW_MAN_PREFIX and CREW_DEST_MAN_PREFIX constants
parents
82785f70
a06aecf0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
crew
crew
+2
-0
lib/const.rb
lib/const.rb
+4
-2
No files found.
crew
View file @
3f70ddf1
...
@@ -262,9 +262,11 @@ def const (var)
...
@@ -262,9 +262,11 @@ def const (var)
'CREW_DEST_DIR'
,
'CREW_DEST_DIR'
,
'CREW_DEST_HOME'
,
'CREW_DEST_HOME'
,
'CREW_DEST_LIB_PREFIX'
,
'CREW_DEST_LIB_PREFIX'
,
'CREW_DEST_MAN_PREFIX'
,
'CREW_DEST_PREFIX'
,
'CREW_DEST_PREFIX'
,
'CREW_LIB_PATH'
,
'CREW_LIB_PATH'
,
'CREW_LIB_PREFIX'
,
'CREW_LIB_PREFIX'
,
'CREW_MAN_PREFIX'
,
'CREW_NOT_COMPRESS'
,
'CREW_NOT_COMPRESS'
,
'CREW_NOT_STRIP'
,
'CREW_NOT_STRIP'
,
'CREW_NPROC'
,
'CREW_NPROC'
,
...
...
lib/const.rb
View file @
3f70ddf1
# Defines common constants used in different parts of crew
# Defines common constants used in different parts of crew
CREW_VERSION
=
'1.3.
6
'
CREW_VERSION
=
'1.3.
7
'
ARCH
=
`uname -m`
.
strip
ARCH
=
`uname -m`
.
strip
ARCH_LIB
=
if
ARCH
==
'x86_64'
then
'lib64'
else
'lib'
end
ARCH_LIB
=
if
ARCH
==
'x86_64'
then
'lib64'
else
'lib'
end
...
@@ -13,6 +13,7 @@ else
...
@@ -13,6 +13,7 @@ else
@pkg
.
build_from_source
=
true
@pkg
.
build_from_source
=
true
end
end
CREW_LIB_PREFIX
=
CREW_PREFIX
+
'/'
+
ARCH_LIB
CREW_LIB_PREFIX
=
CREW_PREFIX
+
'/'
+
ARCH_LIB
CREW_MAN_PREFIX
=
CREW_PREFIX
+
'/share/man'
CREW_LIB_PATH
=
CREW_PREFIX
+
'/lib/crew/'
CREW_LIB_PATH
=
CREW_PREFIX
+
'/lib/crew/'
CREW_CONFIG_PATH
=
CREW_PREFIX
+
'/etc/crew/'
CREW_CONFIG_PATH
=
CREW_PREFIX
+
'/etc/crew/'
...
@@ -20,6 +21,7 @@ CREW_BREW_DIR = CREW_PREFIX + '/tmp/crew/'
...
@@ -20,6 +21,7 @@ CREW_BREW_DIR = CREW_PREFIX + '/tmp/crew/'
CREW_DEST_DIR
=
CREW_BREW_DIR
+
'dest'
CREW_DEST_DIR
=
CREW_BREW_DIR
+
'dest'
CREW_DEST_PREFIX
=
CREW_DEST_DIR
+
CREW_PREFIX
CREW_DEST_PREFIX
=
CREW_DEST_DIR
+
CREW_PREFIX
CREW_DEST_LIB_PREFIX
=
CREW_DEST_DIR
+
CREW_LIB_PREFIX
CREW_DEST_LIB_PREFIX
=
CREW_DEST_DIR
+
CREW_LIB_PREFIX
CREW_DEST_MAN_PREFIX
=
CREW_DEST_DIR
+
CREW_MAN_PREFIX
if
ENV
[
'CREW_PREFIX'
].
to_s
==
''
if
ENV
[
'CREW_PREFIX'
].
to_s
==
''
HOME
=
ENV
[
'HOME'
]
HOME
=
ENV
[
'HOME'
]
...
@@ -54,4 +56,4 @@ when 'i686'
...
@@ -54,4 +56,4 @@ when 'i686'
when
'x86_64'
when
'x86_64'
CREW_BUILD
=
'x86_64-cros-linux-gnu'
CREW_BUILD
=
'x86_64-cros-linux-gnu'
end
end
CREW_OPTIONS
=
"--prefix=
#{
CREW_PREFIX
}
--libdir=
#{
CREW_LIB_PREFIX
}
--mandir=
#{
CREW_
PREFIX
}
/share/man
--build=
#{
CREW_BUILD
}
--host=
#{
CREW_BUILD
}
--target=
#{
CREW_BUILD
}
"
CREW_OPTIONS
=
"--prefix=
#{
CREW_PREFIX
}
--libdir=
#{
CREW_LIB_PREFIX
}
--mandir=
#{
CREW_
MAN_PREFIX
}
--build=
#{
CREW_BUILD
}
--host=
#{
CREW_BUILD
}
--target=
#{
CREW_BUILD
}
"
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