Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
ecb14f4a
Commit
ecb14f4a
authored
9 years ago
by
Felix Fietkau
Browse files
Options
Downloads
Patches
Plain Diff
build: allow creating empty package feeds
Signed-off-by:
Felix Fietkau
<
nbd@openwrt.org
>
SVN-Revision: 45757
parent
7c5c2136
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package/Makefile
+2
-2
2 additions, 2 deletions
package/Makefile
scripts/ipkg-make-index.sh
+3
-0
3 additions, 0 deletions
scripts/ipkg-make-index.sh
with
5 additions
and
2 deletions
package/Makefile
+
2
−
2
View file @
ecb14f4a
...
@@ -138,8 +138,8 @@ endif
...
@@ -138,8 +138,8 @@ endif
$(curdir)/index
:
FORCE
$(curdir)/index
:
FORCE
@
echo
Generating package index...
@
echo
Generating package index...
@
for
d
in
$(
PACKAGE_SUBDIRS
);
do
(
\
@
for
d
in
$(
PACKAGE_SUBDIRS
);
do
(
\
[
-
d
$(
PACKAGE_DIR
)
/
$$
d
]
&&
\
mkdir
-
p
$(
PACKAGE_DIR
)
/
$$
d
;
\
cd
$(
PACKAGE_DIR
)
/
$$
d
||
continue
;
\
cd
$(
PACKAGE_DIR
)
/
$$
d
||
continue
;
\
$(
SCRIPT_DIR
)
/ipkg-make-index.sh
.
2>&1
>
Packages
&&
\
$(
SCRIPT_DIR
)
/ipkg-make-index.sh
.
2>&1
>
Packages
&&
\
gzip
-9c
Packages
>
Packages.gz
;
\
gzip
-9c
Packages
>
Packages.gz
;
\
)
;
done
)
;
done
...
...
This diff is collapsed.
Click to expand it.
scripts/ipkg-make-index.sh
+
3
−
0
View file @
ecb14f4a
...
@@ -9,8 +9,10 @@ if [ -z $pkg_dir ] || [ ! -d $pkg_dir ]; then
...
@@ -9,8 +9,10 @@ if [ -z $pkg_dir ] || [ ! -d $pkg_dir ]; then
fi
fi
which
md5sum
>
/dev/null 2>&1
||
alias md5sum
=
md5
which
md5sum
>
/dev/null 2>&1
||
alias md5sum
=
md5
empty
=
1
for
pkg
in
`
find
$pkg_dir
-name
'*.ipk'
|
sort
`
;
do
for
pkg
in
`
find
$pkg_dir
-name
'*.ipk'
|
sort
`
;
do
empty
=
name
=
"
${
pkg
##*/
}
"
name
=
"
${
pkg
##*/
}
"
name
=
"
${
name
%%_*
}
"
name
=
"
${
name
%%_*
}
"
[[
"
$name
"
=
"kernel"
]]
&&
continue
[[
"
$name
"
=
"kernel"
]]
&&
continue
...
@@ -28,3 +30,4 @@ SHA256sum: $sha256sum\\
...
@@ -28,3 +30,4 @@ SHA256sum: $sha256sum\\
Description:/"
Description:/"
echo
""
echo
""
done
done
[
-n
"
$empty
"
]
&&
echo
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment