update __file/gencode to include parameters/ prefix

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-02-23 09:29:57 +01:00
parent 5cc342fd68
commit 0c0209e83b

View file

@ -22,11 +22,11 @@
# example for typewrites later
#
type="$(cat type)"
type="$(cat parameters/type)"
# If destination was specified, do not use the id
if [ -f destination ]; then
destination="$(cat destination)"
if [ -f parameters/destination ]; then
destination="$(cat parameters/destination)"
else
destination="$1"
fi
@ -46,7 +46,7 @@ case "$type" in
;;
esac
if [ -f mode ]; then
mode="$(cat mode)"
if [ -f parameters/mode ]; then
mode="$(cat parameters/mode)"
echo chmod \"$mode\" \"$destination\"
fi