3a5b47e712
- better *_LISTS printout - somewhat cleaner .base comments - more comprehensible git log messages + special handling for complex subprofiles + no need to commit build.log ;-)
35 lines
748 B
Bash
Executable File
35 lines
748 B
Bash
Executable File
#!/bin/sh
|
|
# FIXME: bring to common style
|
|
|
|
verbose()
|
|
{
|
|
[ -z "$GLOBAL_VERBOSE" ] ||
|
|
echo >&2 "HOOK: 01-genbasedir: $*"
|
|
}
|
|
|
|
verbose started
|
|
|
|
[ -d "$WORKDIR/ALTLinux" ] || exit 0
|
|
cd "$WORKDIR/ALTLinux"
|
|
|
|
comps="$(find -mindepth 1 -maxdepth 1 -type d -name 'RPMS.*' -printf '%f\n' |
|
|
sed 's/^RPMS\.//')"
|
|
|
|
verbose "comps=$comps"
|
|
|
|
genbasedir \
|
|
--topdir="$WORKDIR" \
|
|
--architecture="$INFO_ARCH" \
|
|
--no-oldhashfile \
|
|
--partial \
|
|
--bz2only \
|
|
--create \
|
|
--notautomatic=false \
|
|
${INFO_NAME:+--archive="$INFO_NAME"} \
|
|
${INFO_VERSION:+--version="$INFO_VERSION"} \
|
|
${INFO_ORIGIN:+--origin="$INFO_ORIGIN"} \
|
|
${INFO_LABEL:+--label="$INFO_LABEL"} \
|
|
ALTLinux $comps
|
|
|
|
verbose finished
|