006c30a9cd
This was pulled from mkimage-profiles-desktop as is, and so far is useless (addons, ltsp are out of scope yet). When reintroduced, it'd better be done as a separate script.
34 lines
717 B
Bash
Executable File
34 lines
717 B
Bash
Executable File
#!/bin/sh
|
|
|
|
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
|