Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
#!/bin/sh
# Retrieves RPMs from update media.
# Written by T.Nonogaki
APPVER=1.0
VERSION=$1
MODE=update
ME=$(basename $0)
## Variables. You can fiddle with them.
#
# Name of distribution. This should be the exact name of top directory
# where RPMS/ resides, in source media.
DIST=RedHat
# Absolute path of top of destination directory.
LOCALMIRRORDIR=/home/yumadm/pub/package
# Directory where original os packages will reside,
# relative to $LOCALMIRRORDIR/redhat/linux/$VERSION/en/os/i386/
OSDIR=$DIST/RPMS
# Directory where `base' files such as comps.xml reside.
BASE=$DIST/base
# Mount point of source media.
MOUNTP=/media/cdrom
# Source directory where to fetch packages from. If not empty,
# this overrides default RPMSOURCE, $MOUNTP/$DIST/RPMS.
# Example: RPMSOURCE=/var/cache/yum/updates-released/packages
RPMSOURCE=""
# Architectures you want to deal with.
ARCHS=(i386 i686 noarch)
# Definition of copy command.
COPY='cp -f -v'
function show_help() {
cat <