瀏覽代碼

Make (un)installation ore verbose

While still non-intruding (only one line per one real world action)
(un)instalation could be more talkative.
Alois Mahdal 10 年之前
父節點
當前提交
243556f0be
共有 1 個檔案被更改,包括 9 行新增9 行删除
  1. 9
    9
      setup/mk.sh

+ 9
- 9
setup/mk.sh 查看文件

@@ -60,13 +60,13 @@ dist() {
60 60
 }
61 61
 
62 62
 install() {
63
-    mkdir -p $bindir \
64
-             $docdir \
65
-             $shrdir
63
+    mkdir -vp $bindir \
64
+              $docdir \
65
+              $shrdir
66 66
     list_of_bins | xargs cp -vrt $bindir
67 67
     list_of_docs | xargs cp -vrt $docdir
68 68
     list_of_shrs | xargs cp -vrt $shrdir
69
-    list_of_installed_bins | xargs chmod 755
69
+    list_of_installed_bins | xargs chmod -v 755
70 70
     test -f .autoclean && clean || :
71 71
 }
72 72
 
@@ -129,11 +129,11 @@ run_test() {
129 129
 }
130 130
 
131 131
 uninstall() {
132
-    list_of_installed_bins | xargs rm -f
133
-    rm -rf $shrdir/ffoo
134
-    rm -rf $docdir/ffoo
135
-    rm -f $mandir/man1/fff.1
136
-    rm -f $mandir/man3/ffoo.3
132
+    list_of_installed_bins | xargs rm -vf
133
+    rm -vrf $shrdir/ffoo
134
+    rm -vrf $docdir/ffoo
135
+    rm -vf $mandir/man1/fff.1
136
+    rm -vf $mandir/man3/ffoo.3
137 137
 }
138 138
 
139 139
 case $1 in