summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoichiro IWAO <meta@vmeta.jp>2014-05-27 16:14:01 +0900
committerKoichiro IWAO <meta@vmeta.jp>2014-05-27 16:14:01 +0900
commit0c6527f22680b61247b20776f334e3cf36446eba (patch)
treebb40ac923a249b1ce6a1c1fd55e9b816f3fe9e11
parent2abe16a609ec3dc23c7bcca04e5f42e5ad7fea25 (diff)
downloadxrdp-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-xxorg/X11R7.6/buildx.sh6
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()