Subject SHA-1 Author Date
Added support for FORCE_NET_V*_CONN_ERROR to return an error for connect syscall c221dc3ff63bcd28c2053694177a9a09ef9a6570 Catalin(ux) M. BOIE 2019-03-20 18:26:19
rpm changelog e7127f5191015b0b93c7108b6fa02fde7f0fe909 Catalin(ux) M. BOIE 2019-02-05 21:10:57
duilder update 71425ef75fbc076d6601ceadd52e81e678aabe57 Catalin(ux) M. BOIE 2019-02-05 21:09:29
Switch to v0.13 7a5ed99fa6629ff9dbe16f6b015712a78854b621 Catalin(ux) M. BOIE 2019-02-05 21:08:06
Lots of changes e11f13f4d11723f0c2c833ffbaca89e55d74e139 Catalin(ux) M. BOIE 2019-01-16 20:18:06
Restart accept interrupted by signal d84134f3193fd2d4c5298eaded8ffade5d74d220 Catalin(ux) M. BOIE 2014-11-11 06:57:12
Bump version to 0.12 ea1c70a262b706cd45f1eb98b6aa9805de300647 Catalin(ux) M. BOIE 2014-10-14 03:14:29
Added support to change poll timeout d0e5782e1fb0da5db1291b3c518486d3ac8dec97 Catalin(ux) M. BOIE 2014-10-14 03:13:58
Fixed strcmp on a NULL variable 59df6d596e3c842227f4f374b4b6635de3ce1c3e Catalin(ux) M. BOIE 2014-10-14 03:12:29
Added support for deny and fake for Kevin d9598fd2ca7886484b78512d71dbd29059720832 Catalin(ux) M. BOIE 2012-07-18 21:13:20
Commit 71425ef75fbc076d6601ceadd52e81e678aabe57 - duilder update
Author: Catalin(ux) M. BOIE
Author date (UTC): 2019-02-05 21:09
Committer: Catalin(ux) M. BOIE
Commit date (UTC): 2019-02-05 21:09
Tree: 4696733a31d96375074e121e350c422185d5dea0
Parents: 7a5ed99fa6629ff9dbe16f6b015712a78854b621
File Lines added Lines deleted
duilder 166 23

File duilder changed (mode: 100755) (index 081d1c2..e058c68)
... ... function duilder_docs()
26 26 mkdir -p "${EXPORT_PATH}" mkdir -p "${EXPORT_PATH}"
27 27 fi fi
28 28
29 if [ "${BUILD_SDEB}" = "1" ]; then
30 if [ -d "debian" ]; then
31 >debian/docs
32 fi
33 fi
34
29 35 echo "[*] Copying docs to [${EXPORT_PATH}]..." echo "[*] Copying docs to [${EXPORT_PATH}]..."
30 for f in README License LICENSE Changelog Changelog-last TODO FAQ INSTALL; do
36 for f in README License LICENSE Changelog Changelog-last TODO FAQ INSTALL AUTHORS samples; do
31 37 if [ -r "${f}" ]; then if [ -r "${f}" ]; then
32 cp -vp "${f}" "${EXPORT_PATH}/"
38 cp -avp "${f}" "${EXPORT_PATH}/"
39 if [ "${BUILD_SDEB}" = "1" ]; then
40 # No need to install the license file
41 if [ "${f}" = "LICENSE" ]; then
42 continue
43 fi
44 echo "${f}" >> debian/docs
45 fi
33 46 fi fi
34 47 done done
35 48 echo echo
 
... ... function duilder_git()
60 73 exit 0 exit 0
61 74 fi fi
62 75
76 echo "[*] Testing if a tag is present for HEAD..."
77 D=`git describe | sed -e 's/^.*-g[0-9a-fA-F]*$//'`
78 if [ "${D}" = "" ]; then
79 echo "No annotated tag preset for HEAD! Please add one!"
80 exit 1
81 fi
82
63 83 if [ "${EXPORT_GIT}" = "1" ]; then if [ "${EXPORT_GIT}" = "1" ]; then
64 84 echo "[*] Generating GIT tree for HTTP transport..." echo "[*] Generating GIT tree for HTTP transport..."
65 85 if [ ! -d "${GIT_DEST}/${PRJ}.git" ]; then if [ ! -d "${GIT_DEST}/${PRJ}.git" ]; then
 
... ... function duilder_git()
96 116
97 117 # get the list of tags # get the list of tags
98 118 number_of_tags=0 number_of_tags=0
119 git show-ref --tags -d | grep refs/tags/v > duilder.tmp
99 120 while read sha1 full_tag; do while read sha1 full_tag; do
100 121 tag=`echo ${full_tag} | sed -e 's#refs/tags/##' | cut -d'^' -f1` tag=`echo ${full_tag} | sed -e 's#refs/tags/##' | cut -d'^' -f1`
101 122 tags[${number_of_tags}]=${tag} tags[${number_of_tags}]=${tag}
102 123 tags_commit[${number_of_tags}]=${sha1} tags_commit[${number_of_tags}]=${sha1}
103 124 number_of_tags=$[${number_of_tags}+1] number_of_tags=$[${number_of_tags}+1]
104 done < <(git show-ref --tags -d | grep refs/tags/v)
125 done < duilder.tmp
126 rm -f duilder.tmp
105 127
106 128 # get the list of commits, test if is a tag and do the diff # get the list of commits, test if is a tag and do the diff
107 129 prev="" prev=""
 
... ... function duilder_srpm()
159 181
160 182 P="${PRJ}-${VER}" P="${PRJ}-${VER}"
161 183
184 if [ "${BUILD_SRPM}" != "1" ]; then
185 exit 0
186 fi
187
162 188 if [ ! -d "${EXPORT_PATH}" ]; then if [ ! -d "${EXPORT_PATH}" ]; then
163 189 echo "WARN: ${EXPORT_PATH} does not exists. Creating it..." echo "WARN: ${EXPORT_PATH} does not exists. Creating it..."
164 190 mkdir -p "${EXPORT_PATH}" mkdir -p "${EXPORT_PATH}"
165 191 fi fi
166 192
167 if [ "${BUILD_SRPM}" != "1" ]; then
168 exit 0
169 fi
170
171 193 echo "[*] Building SRPM..." echo "[*] Building SRPM..."
172 194 rpmbuild -ts "${P}.tar.gz" rpmbuild -ts "${P}.tar.gz"
173 195 echo echo
 
... ... function duilder_srpm()
185 207 if [ ! -z "${SRPM_DEST}" ]; then if [ ! -z "${SRPM_DEST}" ]; then
186 208 echo "[*] Copying [${PKG}] to [${SRPM_DEST}]..." echo "[*] Copying [${PKG}] to [${SRPM_DEST}]..."
187 209 cp -vp "${PKG}" "${SRPM_DEST}/" cp -vp "${PKG}" "${SRPM_DEST}/"
188 echo
189 210 fi fi
190 211
191 212 echo "[*] Copying to export dir [${EXPORT_PATH}]..." echo "[*] Copying to export dir [${EXPORT_PATH}]..."
 
... ... function duilder_srpm()
199 220 fi fi
200 221 } }
201 222
223 function duilder_sdeb()
224 {
225 PRJ="${1}"
226 VER="${2}"
227 EXPORT_PATH="${3}"
228 BUILD_SDEB="${4}"
229 SDEB_DEST="${5}"
230 SDEB_POST_RUN="${6}"
231
232 P="${PRJ}-${VER}"
233
234 if [ "${BUILD_SDEB}" != "1" ]; then
235 exit 0
236 fi
237
238 if [ ! -d "${EXPORT_PATH}" ]; then
239 echo "WARN: ${EXPORT_PATH} does not exists. Creating it..."
240 mkdir -p "${EXPORT_PATH}"
241 fi
242
243 echo "[*] Copying SDEB..."
244 PKG="${PRJ}_${VER}.orig.tar.gz"
245
246 if [ -n "${SDEB_DEST}" ]; then
247 cp -vp "${P}.tar.gz" "${SDEB_DEST}/${PKG}"
248 fi
249
250 echo "[*] Copying to export dir [${DEB_EXPORT_PATH}]..."
251 mkdir -p "${EXPORT_PATH}"
252 cp -vp "${P}.tar.gz" "${EXPORT_PATH}/${PKG}"
253 echo
254
255 if [ -x "${SDEB_POST_RUN}" ]; then
256 echo "[*] Running post SDEB build script [${SDEB_POST_RUN}]..."
257 ${SDEB_POST_RUN} "${SDEB}/${PKG}"
258 fi
259 }
260
202 261 function duilder_tar() function duilder_tar()
203 262 { {
204 263 PRJ="${1}" PRJ="${1}"
 
... ... function duilder_tar()
215 274
216 275 echo "[*] Generating tarball [${P}.tar.gz]..." echo "[*] Generating tarball [${P}.tar.gz]..."
217 276 ADD_EXCLUDE="" ADD_EXCLUDE=""
218 if [ ! -z "${EXCLUDE}" ]; then
277 if [ -r "${EXCLUDE}" ]; then
219 278 ADD_EXCLUDE="--exclude-from ${P}/${EXCLUDE}" ADD_EXCLUDE="--exclude-from ${P}/${EXCLUDE}"
279 echo "[*] ADD_EXCLUDE=${ADD_EXCLUDE}"
220 280 fi fi
221 281
222 282 (cd .. \ (cd .. \
 
... ... if [ -z "${REV}" ]; then
274 334 fi fi
275 335
276 336 # export variables - just in case a script cares # export variables - just in case a script cares
277 export PRJ VER REV EXPORT_PATH EXPORT_GIT GIT_PUSH GIT_DEST SRPM_DEST LICENSE
337 export PRJ VER REV SHORT_DESCRIPTION EXPORT_PATH EXPORT_GIT GIT_PUSH GIT_DEST
338 export SRPM_DEST SDEB_DEST LICENSE MAINTAINER_NAME MAINTAINER_EMAIL
339 export HOME_PAGE BUILD_SRPM BUILD_SDEB
278 340
279 341
280 342 # Multiplexer # Multiplexer
 
... ... if [ "${1}" = "srpm" ]; then
302 364 exit $? exit $?
303 365 fi fi
304 366
367 if [ "${1}" = "sdeb" ]; then
368 shift
369 duilder_sdeb "$@"
370 exit $?
371 fi
372
305 373 if [ "${1}" = "final" ]; then if [ "${1}" = "final" ]; then
306 374 shift shift
307 375 duilder_final "$@" duilder_final "$@"
 
... ... echo "[*] Duilder builder script"
314 382 echo "[*] Copyright Catalin(ux) M. BOIE - catab at embedromix dot ro" echo "[*] Copyright Catalin(ux) M. BOIE - catab at embedromix dot ro"
315 383 echo "[*] PRJ=${PRJ}, VER=${VER}, REV=${REV}" echo "[*] PRJ=${PRJ}, VER=${VER}, REV=${REV}"
316 384 echo "[*] System: `uname -a`" echo "[*] System: `uname -a`"
385 echo "[*] Parameters: ${@}"
317 386
318 387 ETC="/etc" ETC="/etc"
319 388 BIN="/bin" BIN="/bin"
389 USR="/usr"
320 390 USR_BIN="/usr/bin" USR_BIN="/usr/bin"
321 391 USR_SBIN="/usr/sbin" USR_SBIN="/usr/sbin"
322 392 USR_INCLUDE="/usr/include" USR_INCLUDE="/usr/include"
323 USR_LIB="/usr/lib"
393 if [ "`uname -m`" = "i686" ]; then
394 USR_LIB="/usr/lib"
395 else
396 USR_LIB="/usr/lib64"
397 fi
324 398 USR_SHARE="/usr/share" USR_SHARE="/usr/share"
325 USR_SHARE_DOC="/usr/share/doc/${PRJ}-${VER}"
399 USR_SHARE_DOC="/usr/share/doc/${PRJ}"
326 400 SBIN="/usr/sbin" SBIN="/usr/sbin"
327 401 VAR="/var" VAR="/var"
402 VAR_LIB="/var/lib"
403 MAN="/usr/share/man"
404 PREFIX="/usr"
328 405
329 406 while [ "${1}" != "" ]; do while [ "${1}" != "" ]; do
330 VAR="`echo ${1} | cut -d'=' -f1`"
331 VAL="`echo ${1} | cut -d'=' -f2`"
332 case ${VAR} in
407 xVAR="`echo ${1} | cut -d'=' -f1`"
408 xVAL="`echo ${1} | cut -d'=' -f2 | sed -e "s|\\${prefix}|${PREFIX}|"`"
409 shift
410 case ${xVAR} in
333 411 --sysconfdir) --sysconfdir)
334 ETC="${VAL}"
412 ETC="${xVAL}"
335 413 ;; ;;
336 414 --bindir) --bindir)
337 USR_BIN="${VAL}"
415 USR_BIN="${xVAL}"
338 416 ;; ;;
339 417 --sbindir) --sbindir)
340 USR_SBIN="${VAL}"
418 USR_SBIN="${xVAL}"
341 419 ;; ;;
342 420 --includedir) --includedir)
343 USR_INCLUDE="${VAL}"
421 USR_INCLUDE="${xVAL}"
344 422 ;; ;;
345 423 --libdir) --libdir)
346 USR_LIB="${VAL}"
424 USR_LIB="${xVAL}"
347 425 ;; ;;
348 426 --localstatedir) --localstatedir)
349 VAR="${VAL}"
427 VAR="${xVAL}"
428 ;;
429 --sharedstatedir)
430 VAR_LIB="${xVAL}"
350 431 ;; ;;
351 432 --datadir) --datadir)
352 USR_SHARE="${VAL}"
433 USR_SHARE="${xVAL}"
434 ;;
435 --mandir)
436 MAN="${xVAL}"
437 ;;
438 --prefix)
439 PREFIX="${xVAL}"
440 USR="${xVAL}"
353 441 ;; ;;
354 442 esac esac
355 shift
356 443 done done
357 444
358 445 # Last fixes # Last fixes
359 446 VAR_LOG="${VAR}/log" VAR_LOG="${VAR}/log"
360 447 VAR_RUN="${VAR}/run" VAR_RUN="${VAR}/run"
448 DUILDER_SYSTEMD="${USR}/lib/systemd"
361 449
450 for i in ETC BIN USR USR_BIN USR_SBIN USR_INCLUDE USR_LIB USR_SHARE USR_SHARE_DOC SBIN VAR VAR_LIB MAN VAR_LOG VAR_RUN DUILDER_SYSTEMD; do
451 eval value=\$$i
452 echo "[*] Var ${i}=${value}"
453 done
362 454
363 455 # Truncate future sed file # Truncate future sed file
364 456 > tmp.sed > tmp.sed
 
... ... else
449 541 echo "s#@NCURSES_FOUND@#1#g" >> tmp.sed echo "s#@NCURSES_FOUND@#1#g" >> tmp.sed
450 542 fi fi
451 543
544 if [ -n "${CC_SWITCHES}" ]; then
545 _CC_SWITCHES=""
546 echo "[*] Search for valid compiler flags..."
547 add=""
548 for s in ${CC_SWITCHES}; do
549 echo -n " [*] Testing switch [${s}]..."
550 set +e
551 echo "int main(void) { return 0; }" | gcc ${s} -x c -pipe - -o /dev/null 2>/dev/null
552 E=${?}
553 set -e
554 if [ "${E}" != "0" ]; then
555 echo "not supported"
556 else
557 echo "supported"
558 _CC_SWITCHES="${_CC_SWITCHES}${add}${s}"
559 add=" "
560 fi
561 done
562 fi
563
452 564 # generic stuff # generic stuff
453 565 echo "s#@PRJ@#${PRJ}#g" >> tmp.sed echo "s#@PRJ@#${PRJ}#g" >> tmp.sed
454 566 echo "s#@VER@#${VER}#g" >> tmp.sed echo "s#@VER@#${VER}#g" >> tmp.sed
455 567 echo "s#@REV@#${REV}#g" >> tmp.sed echo "s#@REV@#${REV}#g" >> tmp.sed
456 568 echo "s#@ETC@#${ETC}#g" >> tmp.sed echo "s#@ETC@#${ETC}#g" >> tmp.sed
457 569 echo "s#@BIN@#${BIN}#g" >> tmp.sed echo "s#@BIN@#${BIN}#g" >> tmp.sed
570 echo "s#@USR@#${USR}#g" >> tmp.sed
458 571 echo "s#@USR_BIN@#${USR_BIN}#g" >> tmp.sed echo "s#@USR_BIN@#${USR_BIN}#g" >> tmp.sed
459 572 echo "s#@SBIN@#${SBIN}#g" >> tmp.sed echo "s#@SBIN@#${SBIN}#g" >> tmp.sed
460 573 echo "s#@USR_SBIN@#${USR_SBIN}#g" >> tmp.sed echo "s#@USR_SBIN@#${USR_SBIN}#g" >> tmp.sed
461 574 echo "s#@VAR@#${VAR}#g" >> tmp.sed echo "s#@VAR@#${VAR}#g" >> tmp.sed
575 echo "s#@VAR_LIB@#${VAR_LIB}#g" >> tmp.sed
462 576 echo "s#@VAR_LOG@#${VAR_LOG}#g" >> tmp.sed echo "s#@VAR_LOG@#${VAR_LOG}#g" >> tmp.sed
463 577 echo "s#@VAR_RUN@#${VAR_RUN}#g" >> tmp.sed echo "s#@VAR_RUN@#${VAR_RUN}#g" >> tmp.sed
464 578 echo "s#@USR_INCLUDE@#${USR_INCLUDE}#g" >> tmp.sed echo "s#@USR_INCLUDE@#${USR_INCLUDE}#g" >> tmp.sed
 
... ... echo "s#@USR_INC@#${USR_INCLUDE}#g" >> tmp.sed
466 580 echo "s#@USR_LIB@#${USR_LIB}#g" >> tmp.sed echo "s#@USR_LIB@#${USR_LIB}#g" >> tmp.sed
467 581 echo "s#@USR_SHARE@#${USR_SHARE}#g" >> tmp.sed echo "s#@USR_SHARE@#${USR_SHARE}#g" >> tmp.sed
468 582 echo "s#@USR_SHARE_DOC@#${USR_SHARE_DOC}#g" >> tmp.sed echo "s#@USR_SHARE_DOC@#${USR_SHARE_DOC}#g" >> tmp.sed
583 echo "s#@MAN@#${MAN}#g" >> tmp.sed
584 echo "s#@DUILDER_SYSTEMD@#${DUILDER_SYSTEMD}#g" >> tmp.sed
469 585 # Export stuff # Export stuff
470 586 echo "s#@EXPORT_PATH@#${EXPORT_PATH}#g" >> tmp.sed echo "s#@EXPORT_PATH@#${EXPORT_PATH}#g" >> tmp.sed
587 # cc_switches
588 echo "s#@CC_SWITCHES@#${_CC_SWITCHES}#g" >> tmp.sed
589 echo "s#@MAINTAINER_NAME@#${MAINTAINER_NAME}#g" >> tmp.sed
590 echo "s#@MAINTAINER_EMAIL@#${MAINTAINER_EMAIL}#g" >> tmp.sed
591 echo "s#@SHORT_DESCRIPTION@#${SHORT_DESCRIPTION}#g" >> tmp.sed
592 echo "s#@HOME_PAGE@#${HOME_PAGE}#g" >> tmp.sed
471 593
472 594
473 595
 
... ... if [ -r Makefile.in ]; then
483 605 echo "export I_ETC := \$(DESTDIR)${ETC}" >> Makefile echo "export I_ETC := \$(DESTDIR)${ETC}" >> Makefile
484 606 echo "export I_BIN := \$(DESTDIR)${BIN}" >> Makefile echo "export I_BIN := \$(DESTDIR)${BIN}" >> Makefile
485 607 echo "export I_SBIN := \$(DESTDIR)${SBIN}" >> Makefile echo "export I_SBIN := \$(DESTDIR)${SBIN}" >> Makefile
608 echo "export I_USR := \$(DESTDIR)${USR}" >> Makefile
486 609 echo "export I_USR_BIN := \$(DESTDIR)${USR_BIN}" >> Makefile echo "export I_USR_BIN := \$(DESTDIR)${USR_BIN}" >> Makefile
487 610 echo "export I_USR_SBIN := \$(DESTDIR)${USR_SBIN}" >> Makefile echo "export I_USR_SBIN := \$(DESTDIR)${USR_SBIN}" >> Makefile
488 611 echo "export I_USR_INCLUDE := \$(DESTDIR)${USR_INCLUDE}" >> Makefile echo "export I_USR_INCLUDE := \$(DESTDIR)${USR_INCLUDE}" >> Makefile
 
... ... if [ -r Makefile.in ]; then
492 615 echo "export I_USR_LIB := \$(DESTDIR)${USR_LIB}" >> Makefile echo "export I_USR_LIB := \$(DESTDIR)${USR_LIB}" >> Makefile
493 616 echo "export I_LIB := \$(DESTDIR)${USR_LIB}" >> Makefile echo "export I_LIB := \$(DESTDIR)${USR_LIB}" >> Makefile
494 617 echo "export I_VAR := \$(DESTDIR)${VAR}" >> Makefile echo "export I_VAR := \$(DESTDIR)${VAR}" >> Makefile
618 echo "export I_VAR_LIB := \$(DESTDIR)${VAR_LIB}" >> Makefile
495 619 echo "export I_VAR_LOG := \$(DESTDIR)${VAR_LOG}" >> Makefile echo "export I_VAR_LOG := \$(DESTDIR)${VAR_LOG}" >> Makefile
496 620 echo "export I_VAR_RUN := \$(DESTDIR)${VAR_RUN}" >> Makefile echo "export I_VAR_RUN := \$(DESTDIR)${VAR_RUN}" >> Makefile
621 echo "export I_MAN := \$(DESTDIR)${MAN}" >> Makefile
622 echo "export I_DUILDER_SYSTEMD := \$(DESTDIR)${DUILDER_SYSTEMD}" >> Makefile
497 623 echo >> Makefile echo >> Makefile
498 624 echo "# DB stuff" >> Makefile echo "# DB stuff" >> Makefile
499 625 echo "export DB_SUPPORT := ${DB_SUPPORT}" >> Makefile echo "export DB_SUPPORT := ${DB_SUPPORT}" >> Makefile
 
... ... if [ -r Makefile.in ]; then
523 649 echo " @./duilder git \"\$(PRJ)\" \"${GIT_DEST}\" \"${EXPORT_GIT}\" \"${GIT_CHANGELOG}\"" \"${GIT_PUSH}\" >> Makefile echo " @./duilder git \"\$(PRJ)\" \"${GIT_DEST}\" \"${EXPORT_GIT}\" \"${GIT_CHANGELOG}\"" \"${GIT_PUSH}\" >> Makefile
524 650 echo " @./duilder tar \"\$(PRJ)\" \"\$(VER)\" \"${EXPORT_PATH}\" \"${EXCLUDE}\"" >> Makefile echo " @./duilder tar \"\$(PRJ)\" \"\$(VER)\" \"${EXPORT_PATH}\" \"${EXCLUDE}\"" >> Makefile
525 651 echo " @./duilder srpm \"\$(PRJ)\" \"\$(VER)\" \"${EXPORT_PATH}\" \"${BUILD_SRPM}\" \"${SRPM_DEST}\" \"${SRPM_POST_RUN}\"" >> Makefile echo " @./duilder srpm \"\$(PRJ)\" \"\$(VER)\" \"${EXPORT_PATH}\" \"${BUILD_SRPM}\" \"${SRPM_DEST}\" \"${SRPM_POST_RUN}\"" >> Makefile
652 echo " @./duilder sdeb \"\$(PRJ)\" \"\$(VER)\" \"${EXPORT_PATH}\" \"${BUILD_SDEB}\" \"${SDEB_DEST}\" \"${SDEB_POST_RUN}\"" >> Makefile
526 653 echo " @./duilder docs \"\$(PRJ)\" \"\$(VER)\" \"${EXPORT_PATH}\"" >> Makefile echo " @./duilder docs \"\$(PRJ)\" \"\$(VER)\" \"${EXPORT_PATH}\"" >> Makefile
527 654 echo " @./duilder final \"\$(PRJ)\" \"\$(VER)\" \"${RELEASE_SCRIPT}\"" >> Makefile echo " @./duilder final \"\$(PRJ)\" \"\$(VER)\" \"${RELEASE_SCRIPT}\"" >> Makefile
528 655 echo " @rm -f \"\$(PRJ)-\$(VER).tar.gz\"" >> Makefile echo " @rm -f \"\$(PRJ)-\$(VER).tar.gz\"" >> Makefile
 
... ... if [ ! -z "${CONFIG_H}" ]; then
539 666 sed -f tmp.sed ${CONFIG_H}.in > ${CONFIG_H} sed -f tmp.sed ${CONFIG_H}.in > ${CONFIG_H}
540 667 fi fi
541 668
669 if [ "${BUILD_SDEB}" = "1" ]; then
670 AUTOGENERATE="${AUTOGENERATE} debian/control.in debian/changelog.in"
671 AUTOGENERATE="${AUTOGENERATE} debian/copyright.in debian/rules.in"
672 fi
673
674 echo "[*] Autogenerate files from .in..."
675 for f in ${AUTOGENERATE}; do
676 if [ -r "${f}" ]; then
677 dst="${f%.in}"
678 echo " [*] Autogenerate ${dst} from ${f}..."
679 sed -f tmp.sed "${f}" > "${dst}"
680 # We need to have the same rights (maybe is executable...)
681 chmod --reference="${f}" "${dst}"
682 fi
683 done
684
542 685 rm -f tmp.sed rm -f tmp.sed
543 686
544 687 if [ "`basename ${0}`" = "duilderx" ]; then if [ "`basename ${0}`" = "duilderx" ]; then
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/force_bind

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/force_bind

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/force_bind

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master