lfs-rpmbootstrap/remove_duplicates.sh
YellowJacketLinux badfca2ab7 first commit
2024-10-19 20:12:29 -07:00

26 lines
464 B
Bash

#!/bin/bash
if [ "`whoami`" != "root" ]; then
echo "You must run this as r00t. Sorry."
exit 1
fi
pushd /usr/share/man
for file in `find . -type f -print`; do
if [ -f "${file}.gz" ]; then
echo "removing ${file} as duplicate"
rm -f ${file}
sleep 0.3
fi
done
popd
pushd /usr/share/info
for file in `find . -type f -print`; do
if [ -f "${file}.gz" ]; then
echo "removing ${file} as duplicate"
rm -f ${file}
sleep 0.3
fi
done
popd