Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
abuild
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Adélie Linux
abuild
Commits
d66a5ee4
Commit
d66a5ee4
authored
Feb 13, 2012
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abuild: run postcheck for subpackages as well
parent
92af0b86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
14 deletions
+23
-14
abuild.in
abuild.in
+23
-14
No files found.
abuild.in
View file @
d66a5ee4
...
...
@@ -536,6 +536,25 @@ get_split_func() {
echo
$func
}
postcheck
()
{
local dir
=
"
$1
"
name
=
"
$2
"
i
=
msg
"Running postcheck for
$name
"
# look for *.la files
i
=
$(
find
"
$dir
"
-name
'*.la'
|
sed
"s|^
$dir
|
\t
|"
)
if
[
-n
"
$i
"
]
&&
!
options_has
"libtool"
;
then
error
"Libtool archives (*.la) files found and
\$
options has no 'libtool' flag:"
echo
"
$i
"
return
1
fi
# check directory permissions
i
=
$(
find
"
$dir
"
-type
d
-perm
-777
|
sed
"s|^
$dir
|
\t
|"
)
if
[
-n
"
$i
"
]
;
then
warning
"World writeable directories found:"
echo
"
$i
"
fi
return
0
}
prepare_subpackages
()
{
local
i
cd
"
$startdir
"
...
...
@@ -543,27 +562,17 @@ prepare_subpackages() {
local
func
=
$(
get_split_func
$i
)
# call abuild recursively, setting subpkg{dir,name}
msg
"Running split function
$func
..."
subpkgdir
=
"
$pkgbasedir
/
${
i
%
:
*
}
"
subpkgname
=
"
${
i
%
:
*
}
"
\
local dir
=
"
$pkgbasedir
/
${
i
%
:
*
}
"
name
=
"
${
i
%
:
*
}
"
subpkgdir
=
"
$dir
"
subpkgname
=
"
$name
"
\
$0
$func
prepare_package
||
return
1
postcheck
"
$dir
"
"
$name
"
||
return
1
done
# post check
i
=
$(
find
"
$pkgdir
"
-name
'*.la'
|
sed
"s|^
$pkgdir
|
\t
|"
)
if
[
-n
"
$i
"
]
&&
!
options_has
"libtool"
;
then
error
"Libtool archives (*.la) files found and
\$
options has no 'libtool' flag:"
echo
"
$i
"
return
1
fi
postcheck
"
$pkgdir
"
"
$pkgname
"
||
return
1
# post check for /usr/share/locale
if
[
-d
"
$pkgdir
"
/usr/share/locale
]
;
then
warning
"Found /usr/share/locale"
warning2
"Maybe add
\$
pkgname-lang to subpackages?"
fi
# check directory permissions
i
=
$(
find
"
$pkgdir
"
-type
d
-perm
-777
|
sed
"s|^
$pkgdir
|
\t
|"
)
if
[
-n
"
$i
"
]
;
then
warning
"World writeable directories found:"
echo
"
$i
"
fi
}
default_lang
()
{
...
...
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