#!/bin/sh # self=`basename $0` # roottree="opt" if [ "$2" != "" ] then rootpath=$2/$roottree else rootpath=/$roottree fi link="pkg" tree="packages" # leaf="sub" # archive="arc" distribution="dist" # bin="bin" lib="lib" man="man" include="include" shlib="shlib" info="info" xad="xad" # if [ "$1" != "$roottree" -a "$1" != "$leaf" ] then echo "Usage: $self $roottree|$leaf [root-path]" echo echo "Creates either root-path/$roottree" echo " root-path/$roottree/$link" echo " root-path/$roottree/$tree" echo " root-path/$roottree/$bin" echo " root-path/$roottree/$lib" echo " root-path/$roottree/$man" echo " root-path/$roottree/$include" echo " root-path/$roottree/$shlib" echo " root-path/$roottree/$info" echo " root-path/$roottree/$xad" echo echo " or ./$archive" echo " ./$distribution" echo " ./$bin" echo " ./$lib" echo " ./$man" echo " ./$include" echo " ./$shlib" echo " ./$info" echo " ./$xad" exit 1 fi # if [ "$1" = "$roottree" ] then cwd=`pwd` mkdir $rootpath cd $rootpath mkdir $link mkdir $tree else mkdir $archive mkdir $distribution fi # mkdir $bin mkdir $lib mkdir $man mkdir $include mkdir $shlib mkdir $info mkdir $xad # if [ "$1" = "$roottree" ] then cd $cwd fi #