comparison scripts/pkg/pkg.m @ 14446:12ccdce2c216

maint: periodic merge of stable to default
author John W. Eaton <jwe@octave.org>
date Fri, 09 Mar 2012 16:39:24 -0500
parents 7277fe922e99 245963d3d628
children cfb0173fe1ca
comparison
equal deleted inserted replaced
14445:b50654a09ba7 14446:12ccdce2c216
1749 colon = colon(1); 1749 colon = colon(1);
1750 keyword = tolower (strip (line(1:colon-1))); 1750 keyword = tolower (strip (line(1:colon-1)));
1751 value = strip (line (colon+1:end)); 1751 value = strip (line (colon+1:end));
1752 if (length (value) == 0) 1752 if (length (value) == 0)
1753 fclose (fid); 1753 fclose (fid);
1754 error ("the keyword %s has an empty value", desc.keywords{end}); 1754 error ("The keyword `%s' of the package `%s' has an empty value",
1755 keyword, desc.name);
1755 endif 1756 endif
1756 desc.(keyword) = value; 1757 desc.(keyword) = value;
1757 endif 1758 endif
1758 endif 1759 endif
1759 line = fgetl (fid); 1760 line = fgetl (fid);