latest sources from main repository

This commit is contained in:
Guenter Obiltschnig
2007-06-13 15:32:13 +00:00
parent db38afabd5
commit aaea87c6e2
6 changed files with 44 additions and 14 deletions

View File

@@ -1,16 +1,19 @@
#! /bin/sh
#
# $Id: //poco/Main/build/script/projname#7 $
# $Id: //poco/Main/build/script/projname#8 $
#
# projname
#
# Usage: projname PROJECT_BASE
#
# Extract the project name from the current path
# NOTE: the cd $POCO_BASE is necessary to resolve symbolic links,
# NOTE: the cd $PROJECT_BASE is necessary to resolve symbolic links,
# ditto is the kinda strange sh -c pwd
#
PROJECT_BASE=$1
cdir=`sh -c pwd`
cd $POCO_BASE
pocobase=`sh -c pwd`
cd $PROJECT_BASE
projbase=`sh -c pwd`
cd "$cdir"
sh -c pwd | sed "s:^$pocobase::" | sed "s:^/::"
sh -c pwd | sed "s:^$projbase::" | sed "s:^/::"