5 echo "usage: configure <package> <revision> [options]"
6 echo " -b <branch-rev>"
10 # to build a package you need ...
11 # <package>.co: checkout commands
12 # <package>.cp (optional): copy step for package production
13 # <package>.cpp (optional): commands to setup the C++ compile environment
26 # checkout build utilities
27 if [ ! -d projects ]; then
28 git clone https://github.com/wagner-tech/projects/
30 ln -sf projects/tools/make/makefile .
32 # check standard files
35 echo "file $paket.co missing or not executable."
40 echo "warning: file $paket.cp missing or not executable:"
41 echo " this file is necessary for any package production."
44 # load util functions for C/C++ - build
51 # clean dirs and check out
66 # copy package control
67 control=$(find src -name $paket.control)
70 echo "warning: control file not found"
71 echo " this file is necessary for any package production."
73 sed "s/%BUILD%/$build/" $control >$paket.control
74 echo "$paket.control written."
77 version=$(grep Version $paket.control |sed "s/Version: //")
81 postinst=$(find src -name $paket.postinst)
87 # create generic make.pre, if not existing
90 cat >>make.pre <<MAKE_PRE
91 # mBuild make.pre script (auto generated)
96 echo "make.pre written."