ruby/tool/rmdirs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 строки
301 B
Plaintext
Исходник Обычный вид История

#!/bin/sh
# Script used by configure to delete directories recursively.
for dir do
while rmdir "$dir" >/dev/null 2>&1 &&
parent=`expr "$dir" : '\(.*\)/[^/][^/]*'`; do
case "$parent" in
. | .. | "$dir") break;;
*) dir="$parent";;
esac
done
done
true