diff options
author | Philipp Hahn <hahn@univention.de> | 2013-01-25 10:19:56 +0100 |
---|---|---|
committer | Philipp Hahn <hahn@univention.de> | 2013-01-28 11:04:28 +0100 |
commit | eb3253fafcf157d281e70e0b7c6e4e67ff55507e (patch) | |
tree | b17a59c8e58d5ca142ca70dd9179110a8e43ec84 /xorg/X11R7.6/buildx.sh | |
parent | 536ac7f9e8e8a44a0ed90b82613cc5be5ac421d5 (diff) | |
download | xrdp-proprietary-eb3253fafcf157d281e70e0b7c6e4e67ff55507e.tar.gz xrdp-proprietary-eb3253fafcf157d281e70e0b7c6e4e67ff55507e.zip |
X11rdp: simplify line splitting
Use "IFS=: read" instead of "echo|cut" constructs.
Diffstat (limited to 'xorg/X11R7.6/buildx.sh')
-rwxr-xr-x | xorg/X11R7.6/buildx.sh | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/xorg/X11R7.6/buildx.sh b/xorg/X11R7.6/buildx.sh index 464dd874..fe2f9ef6 100755 --- a/xorg/X11R7.6/buildx.sh +++ b/xorg/X11R7.6/buildx.sh @@ -90,9 +90,8 @@ remove_modules() cd build_dir - while read line + while IFS=: read mod_file mod_dir mod_args do - mod_dir=`echo $line | cut -d':' -f2` if [ -d $mod_dir ]; then rm -rf $mod_dir fi @@ -308,15 +307,11 @@ if [ ! -d cookies ]; then fi fi -while read line +while IFS=: read mod_file mod_dir mod_args do - mod_file=`echo $line | cut -d':' -f1` - mod_dir=`echo $line | cut -d':' -f2` - mod_args=`echo $line | cut -d':' -f3` mod_args=`eval echo $mod_args` make_it $mod_file $mod_dir "$mod_args" - done < $data_file echo "build for X OK" |