catalyst-auto: Combine common functions
Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
parent
41cdecd812
commit
492aacba77
20 changed files with 19 additions and 277 deletions
|
@ -41,16 +41,6 @@ KCONFIG_DIR=${REPO_DIR}/releases/weekly/kconfig/${ARCH}
|
|||
|
||||
EXTENSIONS="[.tar.xz,.tar.bz2,.tar.gz,.tar,.sfs]"
|
||||
|
||||
give_latest_from_dates() {
|
||||
sed 's,-20,~20,g' | \
|
||||
sort -k +1 -n -t '~' | \
|
||||
awk -F\~ \
|
||||
'BEGIN{i=$1; o=$0};
|
||||
{ if($1 != i && i != "") { print o; }; i=$1; o=$0; }
|
||||
END { print o; };' | \
|
||||
tr '~' '-'
|
||||
}
|
||||
|
||||
update_symlinks() {
|
||||
# Symlink the latest stages3 to build from
|
||||
for d in ${BUILD_SRCDIR_BASE}/{default,hardened} ; do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue