pcsc-lite/pre_checkin.sh

32 lines
709 B
Bash

#! /bin/sh
#
# (C) 2006, jw@suse.de
# Distribute freely. Use and modify with care.
# No warranty.
#
# This script tests the source tar-balls
# against files that we want to exclude.
#
bad_files_re='dlcompat-[0-9]*/|APPLE_LICENSE'
for f in `ls *.tar.*`; do
case $f in
*.tar.gz) look='tar ztf' ;;
*.tar.bz2) look='tar jtf' ;;
esac;
$look $f | egrep -- $bad_files_re && bad=1
# test -z $bad && echo $f okay.
done
test -z $bad && exit;
echo ""
echo "==============================================="
echo "Risk level alert!"
echo "Please remove the above files from the package."
echo "==============================================="
echo ""
echo "press CTRL-C to abort, ENTER to continue"
read a