168 |
ORGANIZATION="$DEFAULT_ORGANIZATION"; |
ORGANIZATION="$DEFAULT_ORGANIZATION"; |
169 |
fi |
fi |
170 |
|
|
171 |
if [ -n "$ORGANIZATION" -a "x$ORGANIZATION" != "xunknown" ]; then |
if [ -n "$ORGANIZATION" -a "x$ORGANIZATION" != "xDEFAULT_ORGANIZATIONx" ]; then |
172 |
if [ -f "$ORGANIZATION" ]; then |
if [ `echo $ORGANIZATION | fgrep -c /` -gt 0 -a -f "$ORGANIZATION" ]; then |
173 |
ORGANIZATION="`cat $ORGANIZATION`" |
ORGANIZATION="`cat $ORGANIZATION`" |
174 |
fi |
fi |
175 |
if [ -n "$ORGANIZATION" ]; then |
elif [ -f $HOME/.organization ]; then |
176 |
ORGANIZATION="$ORGANIZATION" |
ORGANIZATION="`cat $HOME/.organization`" |
|
elif [ -f $HOME/.organization ]; then |
|
|
ORGANIZATION="`cat $HOME/.organization`" |
|
|
fi |
|
177 |
fi |
fi |
178 |
|
|
179 |
if [ "x$ORGANIZATION" = "xunknown" ]; then |
if [ "x$ORGANIZATION" = "xDEFAULT_ORGANIZATIONx" ]; then |
180 |
cat <<__EOF__ |
cat <<__EOF__ |
181 |
It seems that send-pr is not installed with your organization set to a useful |
It seems that send-pr is not installed with your organization set to a useful |
182 |
value. To fix this, you need to edit the configuration file |
value. To fix this, you need to edit the configuration file |
185 |
|
|
186 |
__EOF__ |
__EOF__ |
187 |
ORGANIZATION=""; |
ORGANIZATION=""; |
188 |
|
else |
189 |
|
DEFAULT_ORGANIZATION="$ORGANIZATION" |
190 |
fi 1>&2 |
fi 1>&2 |
191 |
|
|
192 |
# If they don't have a preferred editor set, then use |
# If they don't have a preferred editor set, then use |