shithub: scc

Download patch

ref: c94189d775d2a3a39d22090deb8a51580bf0d45b
parent: 4959ae65d686d2ad095cff104428040f65bb05fa
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