+++ /dev/null
-#!/bin/sh
-# This is a shell archive (produced by GNU sharutils 4.2.1).
-# To extract the files from this archive, save it to some FILE, remove
-# everything before the `!/bin/sh' line above, then type `sh FILE'.
-#
-# Made on 2005-10-19 14:10 CEST by <miekg@elektron>.
-# Source directory was `/home/miekg/svn/libdns/trunk/test/99-cleanup.dir'.
-#
-# Existing files will *not* be overwritten unless `-c' is specified.
-#
-# This shar contains:
-# length mode name
-# ------ ---------- ------------------------------------------
-# 235 -rw------- 99-cleanup.dsc
-# 96 -rw------- 99-cleanup.test
-#
-save_IFS="${IFS}"
-IFS="${IFS}:"
-gettext_dir=FAILED
-locale_dir=FAILED
-first_param="$1"
-for dir in $PATH
-do
- if test "$gettext_dir" = FAILED && test -f $dir/gettext \
- && ($dir/gettext --version >/dev/null 2>&1)
- then
- set `$dir/gettext --version 2>&1`
- if test "$3" = GNU
- then
- gettext_dir=$dir
- fi
- fi
- if test "$locale_dir" = FAILED && test -f $dir/shar \
- && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
- then
- locale_dir=`$dir/shar --print-text-domain-dir`
- fi
-done
-IFS="$save_IFS"
-if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
-then
- echo=echo
-else
- TEXTDOMAINDIR=$locale_dir
- export TEXTDOMAINDIR
- TEXTDOMAIN=sharutils
- export TEXTDOMAIN
- echo="$gettext_dir/gettext -s"
-fi
-if touch -am -t 200112312359.59 $$.touch >/dev/null 2>&1 && test ! -f 200112312359.59 -a -f $$.touch; then
- shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'
-elif touch -am 123123592001.59 $$.touch >/dev/null 2>&1 && test ! -f 123123592001.59 -a ! -f 123123592001.5 -a -f $$.touch; then
- shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'
-elif touch -am 1231235901 $$.touch >/dev/null 2>&1 && test ! -f 1231235901 -a -f $$.touch; then
- shar_touch='touch -am $3$4$5$6$2 "$8"'
-else
- shar_touch=:
- echo
- $echo 'WARNING: not restoring timestamps. Consider getting and'
- $echo "installing GNU \`touch', distributed in GNU File Utilities..."
- echo
-fi
-rm -f 200112312359.59 123123592001.59 123123592001.5 1231235901 $$.touch
-#
-if mkdir _sh00639; then
- $echo 'x -' 'creating lock directory'
-else
- $echo 'failed to create lock directory'
- exit 1
-fi
-# ============= 99-cleanup.dsc ==============
-if test -f '99-cleanup.dsc' && test "$first_param" != -c; then
- $echo 'x -' SKIPPING '99-cleanup.dsc' '(file already exists)'
-else
- $echo 'x -' extracting '99-cleanup.dsc' '(text)'
- sed 's/^X//' << 'SHAR_EOF' > '99-cleanup.dsc' &&
-BaseName: 99-cleanup
-Version: 1.0
-Description: Cleaning up the builddir
-CreationDate: Fri Oct 7 21:22:58 CEST 2005
-Maintainer: Miek Gieben
-Category:
-Component:
-Depends:
-Pre:
-Post:
-Test: 99-cleanup.test
-AuxFiles:
-Passed:
-Failure:
-SHAR_EOF
- (set 20 05 10 19 14 10 10 '99-cleanup.dsc'; eval "$shar_touch") &&
- chmod 0600 '99-cleanup.dsc' ||
- $echo 'restore of' '99-cleanup.dsc' 'failed'
- if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
- && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
- md5sum -c << SHAR_EOF >/dev/null 2>&1 \
- || $echo '99-cleanup.dsc:' 'MD5 check failed'
-b1e9acaffc0b37e057b288efc1a0c7d0 99-cleanup.dsc
-SHAR_EOF
- else
- shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < '99-cleanup.dsc'`"
- test 235 -eq "$shar_count" ||
- $echo '99-cleanup.dsc:' 'original size' '235,' 'current size' "$shar_count!"
- fi
-fi
-# ============= 99-cleanup.test ==============
-if test -f '99-cleanup.test' && test "$first_param" != -c; then
- $echo 'x -' SKIPPING '99-cleanup.test' '(file already exists)'
-else
- $echo 'x -' extracting '99-cleanup.test' '(text)'
- sed 's/^X//' << 'SHAR_EOF' > '99-cleanup.test' &&
-[ -f ../.tpkg.var ] && source ../.tpkg.var
-X
-TPKG_BUILD=$1
-# cleanup the mess
-rm -rf $TPKG_BUILD
-SHAR_EOF
- (set 20 05 10 19 14 10 26 '99-cleanup.test'; eval "$shar_touch") &&
- chmod 0600 '99-cleanup.test' ||
- $echo 'restore of' '99-cleanup.test' 'failed'
- if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
- && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
- md5sum -c << SHAR_EOF >/dev/null 2>&1 \
- || $echo '99-cleanup.test:' 'MD5 check failed'
-63ef1b5511eeb7d6160245e590266003 99-cleanup.test
-SHAR_EOF
- else
- shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < '99-cleanup.test'`"
- test 96 -eq "$shar_count" ||
- $echo '99-cleanup.test:' 'original size' '96,' 'current size' "$shar_count!"
- fi
-fi
-rm -fr _sh00639
-exit 0