"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "script/mkroot" between
modules-5.1.1.tar.bz2 and modules-5.2.0.tar.bz2

About: The Environment Modules package provides for the dynamic modification of a user’s environment via modulefiles.

mkroot  (modules-5.1.1.tar.bz2):mkroot  (modules-5.2.0.tar.bz2)
skipping to change at line 75 skipping to change at line 75
continue continue
;; ;;
-c|-clean|--c|--clean) -c|-clean|--c|--clean)
if [ ! -s ./man/whatis ]; then if [ ! -s ./man/whatis ]; then
rm ./man/whatis rm ./man/whatis
else else
echo ./man/whatis is not empty echo ./man/whatis is not empty
fi fi
for m in 1 2 3 4 5 6 7 8 n p l for m in 1 2 3 4 5 6 7 8 n p l
do do
if [ -d ./man/man$m ]; then if [ `ls ./man/man$m|wc -l` - eq 0 ]; then if [ -d ./man/man$m ]; then if [ "`ls ./man/man$m|wc -l`" -eq 0 ]; then
rmdir ./man/man$m rmdir ./man/man$m
if [ -d ./man/cat$m ]; then if [ `ls ./man/cat$m| wc -l` -eq 0 ]; then if [ -d ./man/cat$m ]; then if [ "`ls ./man/cat$m |wc -l`" -eq 0 ]; then
rmdir ./man/cat$m rmdir ./man/cat$m
else else
echo ./man/cat$m is not empty echo ./man/cat$m is not empty
fi;fi fi;fi
else else
echo ./man/man$m is not empty echo ./man/man$m is not empty
fi;fi fi;fi
done done
for d in bin sbin etc lib include info man for d in bin sbin etc lib include info man
do do
if [ -d ./$d ]; then if [ `ls ./$d|wc -l` -eq 0 ]; then if [ -d ./$d ]; then if [ "`ls ./$d|wc -l`" -eq 0 ]; then
rmdir ./$d rmdir ./$d
else else
echo ./$d is not empty echo ./$d is not empty
fi;fi fi;fi
done done
exit exit
;; ;;
-m|-make|--m|--make) -m|-make|--m|--make)
for d in bin sbin etc lib include info man for d in bin sbin etc lib include info man
do do
mkdir ./$d ; chmod $PERMS ./$d mkdir ./$d ; chmod "$PERMS" ./$d
done done
touch ./man/whatis ; chmod $PERMS ./man/whatis touch ./man/whatis ; chmod "$PERMS" ./man/whatis
for m in 1 2 3 4 5 6 7 8 n p l for m in 1 2 3 4 5 6 7 8 n p l
do do
mkdir ./man/man$m ; chmod $PERMS ./man/man$m mkdir ./man/man$m ; chmod "$PERMS" ./man/man$m
mkdir ./man/cat$m ; chmod $PERMS ./man/cat$m mkdir ./man/cat$m ; chmod "$PERMS" ./man/cat$m
done done
exit exit
;; ;;
*) *)
usage usage
exit 2 exit 2
;; ;;
esac esac
done done
 End of changes. 6 change blocks. 
7 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)