Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
292caede
Commit
292caede
authored
Feb 08, 2015
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pkg/lists: fix the fix (handle no lists too)
cp(1) would get confusing arguments with no files to copy if there are no lists to handle; employ xargs(1) as promised to handle this properly.
parent
eadc204b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Makefile
pkg.in/lists/Makefile
+5
-5
No files found.
pkg.in/lists/Makefile
View file @
292caede
...
@@ -21,12 +21,12 @@ TARGET := $(BUILDDIR)/$(SUFFIX)
...
@@ -21,12 +21,12 @@ TARGET := $(BUILDDIR)/$(SUFFIX)
all
:
$(TARGET) $(GLOBAL_DEBUG) $(DOTBASE) copy-lists copy-groups
all
:
$(TARGET) $(GLOBAL_DEBUG) $(DOTBASE) copy-lists copy-groups
@
mp-commit
"
$(TARGET)
"
"requested
$(SUFFIX)
copied over"
@
mp-commit
"
$(TARGET)
"
"requested
$(SUFFIX)
copied over"
# env | sort -u | grep _LISTS | xargs
cp
# env | sort -u | grep _LISTS | xargs
-r cp -t
copy-lists
:
copy-lists
:
@
cp
--parents
-at
$(TARGET)
--
\
@
echo
$
(
foreach V,
\
$
(
f
oreach V
,
\
$
(
f
ilter %_LISTS,
$
(
sort
$
(
.VARIABLES
)))
,
\
$
(
filter %_LISTS,
$
(
sort
$
(
.VARIABLES
)))
,
\
$
(
if
$
(
filter environment% file,
$
(
origin
$V
))
,
$
(
$V
)))
\
$
(
if
$
(
filter environment% file,
$
(
origin
$V
))
,
$
(
$V
)))
| xargs
-r
--
cp
--parents
-at
$(TARGET)
--
copy-groups
:
copy-groups
:
@
if
[
-n
"
$(THE_GROUPS)$(MAIN_GROUPS)
"
]
;
then
\
@
if
[
-n
"
$(THE_GROUPS)$(MAIN_GROUPS)
"
]
;
then
\
...
...
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