#! /bin/sh . locations.include # Hacked by bv@bnl.gov from the originals at # Hacked by csieh@fnal.gov from the originals at # ftp://apt-rpm.tuxfamily.org/pub/ftp.tuxfamily.org/apt-rpm/scripts/ # to be more generic. # Relative directory from the top of the apt repository to the top of the mirror #MIRRORDIR=../mirror MIRRORDIR=. # The idea of full/all/quick is: # * the first time you create the apt repository, choose "full". # * each night (when updates are downloaded), relaunch with "updates" # * if the main os packages change (should not), use "all" if [ $# -ne 2 -o \( "$1" != "full" -a "$1" != "all" -a "$1" != "updates" -a "$1" != "contrib" \) ]; then echo "Usage: $0 " echo " is one of:" echo " \"full\": full apt repository creation" echo " \"all\": no apt repository creation, but full indexes regeneration" echo " \"updates\": no apt repository creation, only updates indexes regeneration" echo " \"contrib\": no apt repository creation, only contrib indexes regeneration" exit 1 fi MODE=$1 #getting from locations.include DEFAULT=$2 echo "Using $MODE" if [ "$MODE" = "full" ]; then # Create directories mkdir -p $RELEASEDIR/$ARCH/apt-rpm/base || exit 1 # Create the main release file cat >$RELEASEDIR/$ARCH/apt-rpm/base/release <$RELEASEDIR/$ARCH/apt-rpm/base/release.os <$RELEASEDIR/$ARCH/apt-rpm/base/release.updates <$RELEASEDIR/$ARCH/apt-rpm/base/release.contrib <