diff options
author | Koichiro IWAO <meta@vmeta.jp> | 2014-05-27 16:14:01 +0900 |
---|---|---|
committer | Koichiro IWAO <meta@vmeta.jp> | 2014-05-27 16:14:01 +0900 |
commit | 0c6527f22680b61247b20776f334e3cf36446eba (patch) | |
tree | bb40ac923a249b1ce6a1c1fd55e9b816f3fe9e11 | |
parent | 2abe16a609ec3dc23c7bcca04e5f42e5ad7fea25 (diff) | |
download | xrdp-proprietary-0c6527f22680b61247b20776f334e3cf36446eba.tar.gz xrdp-proprietary-0c6527f22680b61247b20776f334e3cf36446eba.zip |
buildx.sh: fix clean option
- fix the use of $mod_dir
"build_dir/$mod_dir" was evaluated as "build_dir/ Python-2.7" as
variable mod_dir has leading whitespace
- fix the path of x11_file_list.txt
-rwxr-xr-x | xorg/X11R7.6/buildx.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xorg/X11R7.6/buildx.sh b/xorg/X11R7.6/buildx.sh index 74145e36..22dfe15f 100755 --- a/xorg/X11R7.6/buildx.sh +++ b/xorg/X11R7.6/buildx.sh @@ -59,10 +59,8 @@ remove_modules() while IFS=: read mod_file mod_dir mod_args do - if [ -d build_dir/$mod_dir ]; then - rm -rf build_dir/$mod_dir - fi - done < ../$data_file + (cd build_dir; [ -d $mod_dir ] && rm -rf $mod_dir) + done < $data_file } extract_it() |