Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CHEF
cookbooks
cernvm-fs
Commits
d1e2eb70
Commit
d1e2eb70
authored
Apr 16, 2013
by
Victor Penso
Committed by
Victor Penso
Apr 16, 2013
Browse files
add package build
parent
531bdc22
Changes
1
Hide whitespace changes
Inline
Side-by-side
files/default/cvmfs-install
View file @
d1e2eb70
...
...
@@ -50,7 +50,7 @@ function _error() {
}
# Parse the command line options
ARGS
=
$(
getopt
-o
hdb
-l
"help;debug;build-only"
--
"
$@
"
)
ARGS
=
$(
getopt
-o
hdb
p
-l
"help;debug;build-only
;build-package
"
--
"
$@
"
)
eval set
--
"
$ARGS
"
while
true
;
do
case
"
$1
"
in
...
...
@@ -58,6 +58,10 @@ while true; do
BUILD_ONLY
=
true
shift
;;
-p
|
--build-package
)
BUILD_PACKAGE
=
true
shift
;;
-d
|
--debug
)
_DEBUG
=
true
shift
...
...
@@ -80,7 +84,10 @@ if [ -f $version ] ; then
fi
# list of dependency packages
packages
=
"build-essential
packages
=
"build-essential
autotools-dev
debhelper
devscripts
attr
curl
cmake
...
...
@@ -134,7 +141,7 @@ _debug "Execute Cmake to configure the build process"
cmake
.
>
configure.log 2>&1
if
[[
$?
!=
0
]]
;
then
_error
"Configure failed!"
_error
"Configure failed!
Check
$PWD
/configure.log
"
exit
1
fi
...
...
@@ -145,12 +152,23 @@ _debug "Run make to build the binary code."
make
>
build.log 2>&1
if
[[
$?
!=
0
]]
;
then
_error
"Build failed!"
_error
"Build failed!
Check
$PWD
/build.log
"
exit
1
fi
echo
"Build finished."
if
[
"
$BUILD_PACKAGE
"
=
"true"
]
;
then
_debug
"Build Debian package."
debuild
-us
-uc
>
build-package.log 2>&1
if
[[
$?
!=
0
]]
;
then
_error
"Package build failed! Check
$PWD
/build-package.log"
exit
1
fi
echo
"Packages should be available in
$build_directory
"
exit
0
fi
if
[
!
"
$BUILD_ONLY
"
=
"true"
]
;
then
# deploy the software
make
install
>
$PWD
/install.log
...
...
Write
Preview
Supports
Markdown
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