poco/build/script/projname
Guenter Obiltschnig 7781215f61 sources for 1.3
2006-11-17 16:40:16 +00:00

17 lines
346 B
Bash
Executable File

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