ref: 0c4516e30afe1282abb385ed051ba1cdeae42cfa
parent: fe02e90431559e9440f10983457eb01eece016c0
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Oct 1 07:11:16 EDT 2020
build: Fix usage of install Prefix is a mandatory argument and not a switch. This commit also includes a simplification of the use of prefix in the shell script.
--- a/scripts/install
+++ b/scripts/install
@@ -11,22 +11,22 @@
;;
-*)
echo 1=$1
- echo usage: install -t prefix [-p proto] >&2
+ echo usage: install [-p proto] prefix >&2
exit 1
;;
esac
done
-prefix=$1
+prefix=${1?'prefix missed'}
while read type perm name
do
case $type in
d)
- mkdir -p ${prefix?}/$name
+ mkdir -p $prefix/$name
;;
f)
- cp $name ${prefix?}/$name
+ cp $name $prefix/$name
;;
*)
echo install: wrong entry type >&2