mirror of
https://github.com/YellowJacketLinux/lfs-rpmbootstrap.git
synced 2025-01-23 14:32:16 +08:00
26 lines
464 B
Bash
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
|