2012-07-26 09:22:03 +02:00
|
|
|
#!/bin/sh
|
2022-02-25 07:39:18 +01:00
|
|
|
if [ $# = 1 ] ; then
|
2012-07-26 09:22:03 +02:00
|
|
|
if [ -d "$1" ] ; then
|
|
|
|
find $1 \
|
|
|
|
\( -name \*.o -o -name Makefile -o -name config.log -o -name config.status -o -name Makefile.html -o -name gem_make.out -o -name mkmf.log -o -name \*.bak -o -name .deps -o -name .libs -o -name CVS \) \
|
|
|
|
-print0 | xargs -r0 rm -rv || :
|
2014-02-13 16:13:27 +01:00
|
|
|
# remove more strict in the docu
|
2014-09-10 13:32:21 +02:00
|
|
|
find $1/doc \( -name Makefile.ri -o -name ext -o -name page\*.ri \) -print0 | xargs -r0 rm -rv || :
|
2021-01-26 20:18:16 +01:00
|
|
|
find $1 -type d -name '.gem.*' -print0 | xargs -r0 rm -rv || :
|
2012-07-26 09:22:03 +02:00
|
|
|
else
|
|
|
|
echo "'$1' does not exists or is not a directory! Exiting." >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "Please pass exact one argument to this script! Exiting." >&2
|
|
|
|
exit 1
|
|
|
|
fi
|