mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
Split misc sources and test data into separate packages. Reduces target
src package size by a third.
Move architecture-dependent generated source from src to the main
package.
Mark doc, misc, src and tests packages with PKGARCH:=all as they don't
have any architecture-specific files.
Fix stripping and strip compiler only.
Fixes: c137c382 ("golang: new packages")
Link: https://github.com/openwrt/packages/pull/28445
Suggested-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: George Sapkin <george@sapk.in>
17 lines
212 B
Bash
Executable File
17 lines
212 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2026 George Sapkin
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
for last; do :; done
|
|
|
|
case "$last" in
|
|
*-doc|*-misc|*-src|*-tests)
|
|
echo "Not stripping: $last"
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
"$@"
|