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
402b6e08
Commit
402b6e08
authored
Feb 06, 2012
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pkg.in/lists/Makefile: fixed committing what's copied
Was broken during dot-base introduction by wrong recipe split...
parent
ca67a209
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
Makefile
pkg.in/lists/Makefile
+15
-11
No files found.
pkg.in/lists/Makefile
View file @
402b6e08
...
...
@@ -16,7 +16,16 @@ ifneq (,$(findstring install2,$(FEATURES)))
DOTBASE
:=
dot-base
endif
all
:
$(TARGET) $(GLOBAL_DEBUG) $(DOTBASE)
all
:
$(TARGET) $(GLOBAL_DEBUG) $(DOTBASE) copy-lists copy-groups
@
if
type
-t
git
>
&/dev/null
&&
cd
$(TARGET)
;
then
\
if
[
-n
"
`
git status
-s
`
"
]
;
then
\
git add
.
&&
\
git commit
-qam
"requested
$(SUFFIX)
copied over"
;
\
fi
;
\
cd
-
>
&/dev/null
;
\
fi
copy-lists
:
@
# env | sort -u | grep _LISTS | xargs cp
@
$
(
foreach V,
\
$
(
filter %_LISTS,
$
(
sort
$
(
.VARIABLES
)))
,
\
...
...
@@ -24,6 +33,11 @@ all: $(TARGET) $(GLOBAL_DEBUG) $(DOTBASE)
$(
shell
cp
--parents
-at
$(TARGET)
\
--
$
(
value
$V))
))
copy-groups
:
@
if
[
-n
"
$(THE_GROUPS)$(MAIN_GROUPS)
"
]
;
then
\
cp
-at
$(TARGET)
--
$(THE_GROUPS)
$(MAIN_GROUPS)
;
\
fi
# args: name, suffix, command
define
dump-THEM
if
[
-n
"$($(1)_$(2))"
];
then
echo
-e
"\n## $(1)_$(2)"
;
$(3)
$($(1)_$(2));
fi;
...
...
@@ -39,16 +53,6 @@ dot-base:
$
(
foreach p,SYSTEM COMMON THE BASE,
$
(
call dump-PACKAGES,
$(p)
))
\
$
(
foreach l,THE BASE,
$
(
call dump-LISTS,
$(l)
))
\
}
|
sed
-re
'/^[^[:space:]#]/ s/[[:space:]]+/\n/g'
>
$(TARGET)
/.base
@
if
[
-n
"
$(THE_GROUPS)$(MAIN_GROUPS)
"
]
;
then
\
cp
-at
$(TARGET)
--
$(THE_GROUPS)
$(MAIN_GROUPS)
;
\
fi
@
if
type
-t
git
>
&/dev/null
&&
cd
$(TARGET)
;
then
\
if
[
-n
"
`
git status
-s
`
"
]
;
then
\
git add
.
&&
\
git commit
-qam
"requested
$(SUFFIX)
copied over"
;
\
fi
;
\
cd
-
>
&/dev/null
;
\
fi
# do beforehand as foreach gets expanded before recipe execution
$(TARGET)
:
...
...
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