mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-16 23:27:15 +02:00
bin
module
vendor
ConcurrentQueue
Fmt
MaxmindDB
POCO
ApacheConnector
CppParser
CppUnit
Crypto
Data
Encodings
Foundation
JSON
JWT
MongoDB
Net
NetSSL_OpenSSL
NetSSL_Win
PDF
PageCompiler
PocoDoc
ProGen
Redis
SevenZip
Util
XML
Zip
appveyor
build
config
rules
script
makedepend.SunCC
makedepend.aCC
makedepend.clang
makedepend.cxx
makedepend.gcc
makedepend.qcc
makedepend.xlC
makeldpath
projname
runtests.cmd
runtests.sh
runtests2.cmd
shlibln
vxprogen
cmake
contrib
doc
packaging
patches
release
travis
.gitattributes
.gitignore
.gitmodules
.travis.yml
CHANGELOG
CMakeLists.txt
CODE_OF_CONDUCT.md
CONTRIBUTING.md
CONTRIBUTORS
LICENSE
Makefile
NEWS
README
README.md
VERSION
appveyor.yml
build_cmake.cmd
build_cmake.sh
build_vs140.cmd
build_vs150.cmd
build_vs160.cmd
buildwin.cmd
buildwin.ps1
components
configure
cppignore.lnx
cppignore.win
env.bat
env.sh
libversion
SimpleIni
Squirrel
TinyDir
ZMQ
CMakeLists.txt
.gitignore
.gitmodules
CMakeLists.txt
LICENSE
README.md
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
18 lines
355 B
Bash
18 lines
355 B
Bash
#! /bin/sh
|
|
#
|
|
# projname
|
|
#
|
|
# Usage: projname PROJECT_BASE
|
|
#
|
|
# Extract the project name from the current path
|
|
# 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 $PROJECT_BASE
|
|
projbase=`sh -c pwd`
|
|
cd "$cdir"
|
|
sh -c pwd | sed "s:^$projbase::" | sed "s:^/::"
|