Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/newvers.sh
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
# Looks up directory dir at world root and up the filesystem | # Looks up directory dir at world root and up the filesystem | ||||
# | # | ||||
findvcs() | findvcs() | ||||
{ | { | ||||
local savedir | local savedir | ||||
savedir=$(pwd) | savedir=$(pwd) | ||||
cd ${SYSDIR}/.. | cd ${SYSDIR}/.. | ||||
while [ $(pwd) != "/" ]; do | while [ $(pwd) != "/usr" ]; do | ||||
if [ -e "./$1" ]; then | if [ -e "./$1" ]; then | ||||
VCSTOP=$(pwd) | VCSTOP=$(pwd) | ||||
VCSDIR=${VCSTOP}"/$1" | VCSDIR=${VCSTOP}"/$1" | ||||
cd ${savedir} | cd ${savedir} | ||||
return 0 | return 0 | ||||
fi | fi | ||||
cd .. | cd .. | ||||
done | done | ||||
▲ Show 20 Lines • Show All 255 Lines • Show Last 20 Lines |