mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-10 03:33:08 +01:00
17 lines
364 B
Plaintext
17 lines
364 B
Plaintext
|
#! /bin/sh
|
||
|
#
|
||
|
# $Id: //poco/1.1.0/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:^/::"
|