Sfoglia il codice sorgente

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 anni fa
parent
commit
243556f0be
1 ha cambiato i file con 9 aggiunte e 9 eliminazioni
  1. 9
    9
      setup/mk.sh

+ 9
- 9
setup/mk.sh Vedi File

60
 }
60
 }
61
 
61
 
62
 install() {
62
 install() {
63
-    mkdir -p $bindir \
64
-             $docdir \
65
-             $shrdir
63
+    mkdir -vp $bindir \
64
+              $docdir \
65
+              $shrdir
66
     list_of_bins | xargs cp -vrt $bindir
66
     list_of_bins | xargs cp -vrt $bindir
67
     list_of_docs | xargs cp -vrt $docdir
67
     list_of_docs | xargs cp -vrt $docdir
68
     list_of_shrs | xargs cp -vrt $shrdir
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
     test -f .autoclean && clean || :
70
     test -f .autoclean && clean || :
71
 }
71
 }
72
 
72
 
129
 }
129
 }
130
 
130
 
131
 uninstall() {
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
 case $1 in
139
 case $1 in