Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
14
cde/admin/IntegTools/post_install/size.func
Normal file
14
cde/admin/IntegTools/post_install/size.func
Normal file
@@ -0,0 +1,14 @@
|
||||
if [ "$SRC" != "" ]
|
||||
then
|
||||
set -A tokens $SRC
|
||||
if [ "${tokens[3]}" = "file" ]
|
||||
then
|
||||
if [ -f ${tokens[0]} ]
|
||||
then
|
||||
filesize=`ls -l ${tokens[0]} | awk '{print $5}'`
|
||||
echo "$filesize\t\t\c"
|
||||
echo "${tokens[0]}"
|
||||
let total=total+filesize
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user