/configure (11e05cc644a8af4277006af69d78277a143590c4) (2315 bytes) (mode 100755) (type blob)
#!/bin/sh
if [ ! -r "PROJECT" ]; then
echo "ERRRO: You must have a PROJECT file in the current directory!"
exit 1
fi
PRJ="`cat PROJECT`"
if [ -r "PROJECT_VER" ]; then
VER="`cat PROJECT_VER`"
else
VER="0.1.0"
echo "${VER}" > PROJECT_VER
fi
if [ -r PROJECT_REV ]; then
REV=`cat PROJECT_REV`
else
REV="1"
echo ${REV} > PROJECT_REV
fi
echo "PRJ=${PRJ}, VER=${VER}, REV=${REV}"
ETC="/etc"
BIN="/usr/bin"
SBIN="/usr/sbin"
LOG="/var/log/${PRJ}"
INC="/usr/include"
LIB="/usr/lib"
while [ "${1}" != "" ]; do
VAR="`echo ${1} | cut -d'=' -f1`"
VAL="`echo ${1} | cut -d'=' -f2`"
case ${VAR} in
--sysconfdir)
ETC="${VAL}"
;;
--bindir)
BIN="${VAL}"
;;
--sbindir)
SBIN="${VAL}"
;;
--includedir)
INC="${VAL}"
;;
--libdir)
LIB="${VAL}"
;;
esac
shift
done
DB_SUPPORT=0
echo -n "Search for PostgreSQL..."
PG_FOUND=0
PG_VERSION="`pg_config --version`"
if [ -z "${PG_VERSION}" ]; then
echo " not found!"
else
echo " found version ${PG_VERSION}!"
PG_FOUND=1
PG_INC="${DB_INC} -I`pg_config --includedir`"
PG_LIB="${DB_INC} -L`pg_config --libdir` -lpq"
DB_SUPPORT=1
fi
echo "Find out targets for Makefile..."
if [ -r PROJECT_TARGETS ]; then
MAKEFILE_TARGETS="`cat PROJECT_TARGETS`"
fi
# generic stuff
echo "s#@PRJ@#${PRJ}#g" >> tmp.sed
echo "s#@VER@#${VER}#g" >> tmp.sed
echo "s#@REV@#${REV}#g" >> tmp.sed
echo "s#@ETC@#${ETC}#g" >> tmp.sed
echo "s#@BIN@#${BIN}#g" >> tmp.sed
echo "s#@SBIN@#${SBIN}#g" >> tmp.sed
echo "s#@LOG@#${LOG}#g" >> tmp.sed
echo "s#@INC@#${INC}#g" >> tmp.sed
echo "s#@LIB@#${LIB}#g" >> tmp.sed
# PG stuff
echo "s#@PG_VERSION@#${PG_VERSION}#g" >> tmp.sed
echo "s#@PG_FOUND@#${PG_FOUND}#g" >> tmp.sed
echo "s#@PG_INC@#${PG_INC}#g" >> tmp.sed
echo "s#@PG_LIB@#${PG_LIB}#g" >> tmp.sed
# DB stuff
echo "s#@DB_SUPPORT@#${DB_SUPPORT}#g" >> tmp.sed
# makefile stuff
echo "s#@MAKEFILE_TARGETS@#${MAKEFILE_TARGETS}#g" >> tmp.sed
echo "Build Makefile..."
sed --file tmp.sed Makefile.head > Makefile
if [ -r Makefile.in ]; then
sed --file tmp.sed Makefile.in >> Makefile
fi
sed --file tmp.sed Makefile.tail >> Makefile
echo "Generate .spec file..."
sed --file tmp.sed ${PRJ}.spec.in > ${PRJ}.spec
if [ -r config.h.in ]; then
echo "Generate config.h file..."
sed --file tmp.sed config.h.in > config.h
fi
rm -f tmp.sed
echo "Done. Run make."
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
1945 |
fecf0e7a7e8580485101a179685aedc7e00affbb |
Changelog |
100644 |
blob |
39966 |
3101607ebe0288de591acda2d558579b4c54ccac |
Conn.c |
100644 |
blob |
7051 |
e2302f47f9beb6d949268fee80c918298c6701a1 |
Conn.h |
100644 |
blob |
717 |
1394784a1fafde8f15d3fba489c056bc045a8003 |
Conn.spec.in |
100644 |
blob |
30 |
d987fa5df957830331139935d517009e2911b0cf |
INSTALL |
100644 |
blob |
25275 |
92b8903ff3fea7f49ef5c041b67a087bca21c5ec |
LICENSE |
100644 |
blob |
498 |
9b760aafe85b71ce4d52b50f6b55ff73cff7bfc6 |
Makefile.head |
100644 |
blob |
710 |
570276f936ae7d28a85c1c29c92645f3ba6a9543 |
Makefile.in |
100644 |
blob |
462 |
1b23184ebfd6fb72c20de1e4b011f15aaffb214f |
Makefile.tail |
100644 |
blob |
4 |
c4846601e2d94d4ee8b2c17cc37c0a829c49d1e9 |
PROJECT |
100644 |
blob |
0 |
e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 |
PROJECT_EXCLUDE |
100644 |
blob |
3 |
8f92bfdd49766b1907d4aec8d3b0f9ed6129d0e6 |
PROJECT_REV |
100644 |
blob |
4 |
0702cb5bfbb0169457c00f947f4e5601f8cd77e7 |
PROJECT_TARGETS |
100644 |
blob |
6 |
b0f3d96f877256ed9ae03858ecc5185a989b1d1b |
PROJECT_VER |
100644 |
blob |
192 |
5b11bdfb23857d8588845465aef993b320596b44 |
README |
100644 |
blob |
1453 |
b9f9dab2d0bb2762dea406c9e87d34eb38a18d9d |
TODO |
100755 |
blob |
2315 |
11e05cc644a8af4277006af69d78277a143590c4 |
configure |
040000 |
tree |
- |
d4c9c4a69c5cfa2a84316967185f1661b6817779 |
docs |
040000 |
tree |
- |
a4c21858806284281d1fe8479845411711694ebb |
examples |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/Conn
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/Conn
Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/Conn
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main