summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-11-27 15:10:57 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-11-27 15:10:57 +0200
commit45e4cca1ea3ed5073a54431dbf505e1e252fd678 (patch)
treea9df99edbdb4d5fb0e53dab2785e3ee4306065ce /scripts
parent443d4f4d725a29d405b8c52e3a6ffbc1f514bd27 (diff)
downloadrpm-45e4cca1ea3ed5073a54431dbf505e1e252fd678.tar.gz
rpm-45e4cca1ea3ed5073a54431dbf505e1e252fd678.tar.bz2
rpm-45e4cca1ea3ed5073a54431dbf505e1e252fd678.zip
Remove ancient broken scripts from the repository
- also eliminates one more "bashism" complaint of ticket #62
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.am3
-rwxr-xr-xscripts/u_pkg.sh84
-rwxr-xr-xscripts/vpkg-provides2.sh120
3 files changed, 1 insertions, 206 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 1b9570b55..25d5e36be 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -14,8 +14,7 @@ EXTRA_DIST = \
perldeps.pl perl.prov perl.req pythondeps.sh osgideps.pl \
rpmdb_loadcvt rpmdiff rpmdiff.cgi \
rpm.daily rpm.log rpm.xinetd rpm2cpio.sh \
- tcl.req tgpg u_pkg.sh \
- vpkg-provides.sh vpkg-provides2.sh \
+ tcl.req tgpg vpkg-provides.sh \
find-requires.php find-provides.php \
find-php-provides find-php-requires \
mono-find-requires mono-find-provides \
diff --git a/scripts/u_pkg.sh b/scripts/u_pkg.sh
deleted file mode 100755
index 7e5687b51..000000000
--- a/scripts/u_pkg.sh
+++ /dev/null
@@ -1,84 +0,0 @@
-#!/bin/sh
-
-# a universal interface to Unix OS package managment systems
-
-# This script is not finished. It is a bunch of ideas for creating a
-# universal package manager using the OS package manager. I wish to
-# only use tools which are installed in the OS by default and be
-# portable to all OS package managers.
-
-
-PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/bsd:$PATH"
-export PATH
-
-
-
-osname=`uname -s`
-if test $? -ne 0 || test X$osname = X ; then
- echo "I can't determine what platform this is. Exiting"
- exit 1
-fi
-
-
-#
-# Set OS dependent defaults
-#
-
-# note: that the "package name" which are returned by this script
-# should always include the version and release number.
-
-case $osname in
- Linux)
- check_all_packages='rpm -Va'
- list_all_packages='rpm -qa'
- list_all_files='rpm -qla'
- list_all_files_in_package='rpm -ql $1'
- full_package_name='rpm -q $1'
- query_file='rpm -qf $1'
- ;;
- SunOS)
- check_all_packages='/usr/sbin/pkgchk -n'
- list_all_files='/usr/sbin/pkgchk -l | /bin/egrep Pathname | /bin/awk "{print \$2}" '
- list_all_files_in_package='/usr/sbin/pkgchk -l $1 | /bin/egrep Pathname | /bin/awk "{print \$2}" '
- list_all_packages='/usr/bin/pkginfo -x | /bin/sed -e "/^[a-zA-Z]/ { N; /^\\n\$/d; s/ .*$//; }" '
- package_version='/usr/bin/pkginfo -x $1 | egrep -v "^[a-zA-Z]" | sed -e "s/(.*)//; s/\ \ *//" '
- query_file='/usr/sbin/pkgchk -l -p $1 | /bin/egrep -v "^[a-zA-Z]" | xargs /usr/bin/pkginfo -x | /bin/sed -e "/^[a-zA-Z]/ { N; /^\\n\$/d; s/\ .*\\n.*//; }" '
- ;;
- OSF1)
- ;;
- HP-UX)
- ;;
- AIX)
- ;;
- IRIX|IRIX64)
- ;;
- *)
- echo "I haven't been configured yet to work on $osname."
- echo "email it to rpm-list@redhat.com, so that your OS"
- echo "will be supported by some future version of this script."
- echo ""
- echo "Thanks!"
- echo
- exit 2
- ;;
-esac
-
-
-
-option=$1
-shift
-
-# I would like to have the second $ actually interpolate so I could
-# drop the second eval. Anyone know how to do this?
-
-if [ $option = 'print_cmd' ]; then
- option=$1
- shift
- eval echo $"$option"
- exit 0
-fi
-
-eval eval $"$option"
-
-
-
diff --git a/scripts/vpkg-provides2.sh b/scripts/vpkg-provides2.sh
deleted file mode 100755
index dcbfcc509..000000000
--- a/scripts/vpkg-provides2.sh
+++ /dev/null
@@ -1,120 +0,0 @@
-#!/bin/sh
-
-# This script is not finished. It is a bunch of ideas for using the
-# OS package manager to create a spec file of virtual dependencies for
-# each OS package. I wish to only use tools which are installed in
-# the OS by default.
-
-
-PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/bsd
-export PATH
-
-IGNORE_DIRS='@'
-
-date=`date`
-hostname=`uname -n`
-osname=`uname -s`
-
-# programs we run
-
-find_provides=/usr/lib/rpm/find-provides
-find_requires=/usr/lib/rpm/find-requires
-#find_provides=/devel/kestes/vendorc/tools/solaris.prov
-#find_requires=/devel/kestes/vendorc/tools/solaris.req
-u_pkg=/devel/kestes/vendorc/rpm/scripts/u-pkg.sh
-
-# where we write output
-spec_filedir=/tmp
-provides_tmp=/tmp/provides.$$
-requires_tmp=/tmp/requires.$$
-
-
-for pkg in `$u_pkg list_all_packages`
-do
-
-# find OS pkg information
-
-spec_filename=$spec_filedir/$pkg
-
-veryify_cmd=`$u_pkg print_cmd package_version $pkg | sed -e "s/\\$1/$pkg/" `
-
-pkg_version=`$u_pkg package_version $pkg `
-
-
-# find all the dependencies
-
-$u_pkg list_all_files_in_package $pkg | egrep -v \'$IGNORE_DIRS\' | \
- $find_provides | sed -e 's/^/Provides: /' > $provides_tmp
-
-$u_pkg list_all_files_in_package $pkg | egrep -v \'$IGNORE_DIRS\' | \
- $find_requires | sed -e 's/^/Requires: /' > $requires_tmp
-
-# create the spec file
-
-rm -f $spec_filename
-
-echo >> $spec_filename
-
-cat $provides_tmp | sort -u >> $spec_filename
-
-echo >> $spec_filename
-
-cat $requires_tmp | sort -u >> $spec_filename
-
-echo >> $spec_filename
-
-
-# Output the rest of the spec file. It is a template stored in this
-# here file.
-
-
-cat >> $spec_filename <<_EIEIO_
-Name: vpkg-$pkg
-Version: $pkg_version
-
-%description
-This is a virtual RPM package. It contains no actual files. It uses the
-\`Provides' token from RPM 3.x and later to list many of the shared libraries
-and interpreters that are part of the base operating system and associated
-subsets for $osname.
-
-This virtual package was constructed based on the vendor/system software
-installed on the $osname machine named $hostname, as of the date
-$date. It is intended to supply dependency
-information about the OS package: $pkg, version: $pkg_version,
-
-
-%prep
-# nothing to do
-
-%build
-# nothing to do
-
-%install
-# nothing to do
-
-%clean
-# nothing to do
-
-
-%verifyscript
-
-PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/bsd:/usr/local/bin
-export PATH
-
-expected_version='$pkg_version'
-current_version=\`$veryify_cmd\`
-
-if [ \$expected_version -ne \$current_version ]; then
- echo "RPM virtual package does not match OS pkg: $pkg" >&2
- echo "installed packge version: \$current_verion" >&2
- echo "expected package version: \$expected_version" >&2
- exit 9
-fi
-
-%files
-
-_EIEIO_
-
-done
-