提交 8f679692 编写于 作者: J Joerg Jaspert

Use the debian scriptsdir for the one command we call from there and remove the bpo specific one

Signed-off-by: NJoerg Jaspert <joerg@debian.org>
上级 2d4955b9
......@@ -13,7 +13,7 @@ masterdir=$base/dak/
overridedir=$base/scripts/override
extoverridedir=$scriptdir/external-overrides
configdir=$base/dak/config/backports/
scriptsdir=$base/dak/scripts/backports/
scriptsdir=$base/dak/scripts/debian/
dbdir=$base/database/
queuedir=$base/queue
......
#! /bin/sh
set -e
. $SCRIPTVARS
echo 'Copying override files into public view ...'
for f in $copyoverrides ; do
cd $overridedir
chmod g+w override.$f
cd $indices
rm -f .newover-$f.gz
pc="`gzip 2>&1 -9nv <$overridedir/override.$f >.newover-$f.gz`"
set +e
nf=override.$f.gz
cmp -s .newover-$f.gz $nf
rc=$?
set -e
if [ $rc = 0 ]; then
rm -f .newover-$f.gz
elif [ $rc = 1 -o ! -f $nf ]; then
echo " installing new $nf $pc"
mv -f .newover-$f.gz $nf
chmod g+w $nf
else
echo $? $pc
exit 1
fi
done
../debian/expire_dumps
\ No newline at end of file
#!/bin/sh
# Update the md5sums file
set -e
. $SCRIPTVARS
dsynclist=$dbdir/dsync.list
md5list=$indices/md5sums
echo -n "Creating md5 / dsync index file ... "
cd "$ftpdir"
dsync-flist -q generate $dsynclist --exclude $dsynclist --md5
dsync-flist -q md5sums $dsynclist | gzip -9n > ${md5list}.gz
dsync-flist -q link-dups $dsynclist || true
#!/bin/sh
# Update the ls-lR.
set -e
. $SCRIPTVARS
cd $ftpdir
filename=ls-lR
echo "Removing any core files ..."
find -type f -name core -print0 | xargs -0r rm -v
echo "Checking permissions on files in the FTP tree ..."
find -type f \( \! -perm -444 -o -perm +002 \) -ls
find -type d \( \! -perm -555 -o -perm +002 \) -ls
echo "Checking symlinks ..."
symlinks -rd .
echo "Creating recursive directory listing ... "
rm -f .$filename.new
TZ=UTC ls -lR | grep -v Archive_Maintenance_In_Progress > .$filename.new
if [ -r ${filename}.gz ] ; then
mv -f ${filename}.gz $filename.old.gz
mv -f .$filename.new $filename
rm -f $filename.patch.gz
zcat $filename.old.gz | diff -u - $filename | gzip -9cfn - >$filename.patch.gz
rm -f $filename.old.gz
else
mv -f .$filename.new $filename
fi
gzip -9cfN $filename >$filename.gz
rm -f $filename
#! /bin/sh
echo
echo -n 'Creating Maintainers index ... '
set -e
. $SCRIPTVARS
cd $base/misc/
nonusmaint="$base/misc/Maintainers_Versions-non-US"
cd $indices
dak make-maintainers | sed -e "s/~[^ ]*\([ ]\)/\1/" | awk '{printf "%-20s ", $1; for (i=2; i<=NF; i++) printf "%s ", $i; printf "\n";}' > .new-maintainers
set +e
cmp .new-maintainers Maintainers >/dev/null
rc=$?
set -e
if [ $rc = 1 ] || [ ! -f Maintainers ] ; then
echo -n "installing Maintainers ... "
mv -f .new-maintainers Maintainers
gzip -9v <Maintainers >.new-maintainers.gz
mv -f .new-maintainers.gz Maintainers.gz
elif [ $rc = 0 ] ; then
echo '(same as before)'
rm -f .new-maintainers
else
echo cmp returned $rc
false
fi
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册