Партнерка на США и Канаду по недвижимости, выплаты в крипто
- 30% recurring commission
- Выплаты в USDT
- Вывод каждую неделю
- Комиссия до 5 лет за каждого referral
mv wab. install $WABNAME. install
mv wab-gui. preinst $WABNAME-gui. preinst
mv wab-gui. install $WABNAME-gui. install
mv wab-gui-dev. install $WABNAME-gui-dev. install
mv wab-gui. postinst $WABNAME-gui. postinst
mv wab-gui-dev. postinst $WABNAME-gui-dev. postinst
mv wab-gui. prerm $WABNAME-gui. prerm
mv wab-gui. postrm $WABNAME-gui. postrm
mv wab-gui. wabgui. init $WABNAME-gui. wabgui. init
mv wab-gui. wabgui. default $WABNAME-gui. wabgui. default
mv wab-gui. wabgui. cron. d $WABNAME-gui. wabgui. cron. d
mv wab-ha. preinst $WABNAME-ha. preinst
mv wab-ha. install $WABNAME-ha. install
mv wab-ha. postinst $WABNAME-ha. postinst
mv wab-ha. postrm $WABNAME-ha. postrm
mv wab-system-configuration. wabsystemconfiguration. init $WABNAME-system-configuration. wabsystemconfiguration. init
if [ "${_distro}" = "wheezy" ]; then
rm wab-system-configuration. wabsystemconfiguration. service
else
mv wab-system-configuration. wabsystemconfiguration. service $WABNAME-system-configuration. wabsystemconfiguration. service
fi
mv wab-system-configuration. wabsystemconfiguration. default $WABNAME-system-configuration. wabsystemconfiguration. default
mv wab-system-configuration. install $WABNAME-system-configuration. install
mv wab-system-configuration-dev. install $WABNAME-system-configuration-dev. install
mv wab-system-configuration. postinst $WABNAME-system-configuration. postinst
mv wab-system-configuration-dev. postinst $WABNAME-system-configuration-dev. postinst
fi
popd
}
# format: WAB_PACKAGES="wab_src1:wabpackage1 wab_src2:wabpackage2"
WAB_PACKAGES="wabengine:wabengine \
common/debcheck:debcheck \
common/wabcrypto:wabcrypto \
common/wabchgpwd:wabchgpwd \
common/wabgpg:wabgpg \
common/wabconfig:wabconfig \
common/wabflowscan:wabflowscan \
common/wabsshkeys:wabsshkeys \
common/wabx509:wabx509 \
common/wabunicodeutils:wabunicodeutils \
common/wab-backupdaemon:wab-backupdaemon \
core/wabrestapi:wabrestapi \
models:models \
backend:backend \
watchdog:wabwatchdog"
_build_wab_package() {
local wabpackage=$(echo $1 | cut - d':' - f2)
local wabpath=$(echo $1 | cut - d':' - f1)
local packagepath="${BUILDPREFIX}/wab/${wabpath}"
print_banner "Building ${wabpackage} Packages"
pushd ${packagepath}
rm debian/changelog
dch --create $release_option - v ${final_version} --package ${wabpackage} --empty "Release ${final_version}"
# Build packages based on debian/rules makefile
# Use - b to only create binary packages.
# FIXME: should be fine to sign the packages....
if [ - n "$clean_wab" ]; then
dpkg-buildpackage - r - tc - b - us - uc
else
dpkg-buildpackage - r - b - us - uc
fi
popd
if ( ls $(dirname ${packagepath})/*.deb >/dev/null 2>&1 ); then
# remove older versions of the compiled packages
file_patterns=$((for F in $(cd $(dirname ${packagepath})/ ; ls *.deb); do echo ${F/_*_/_*_}; done) | tr '\n' ' ')
if (cd ${BUILDPREFIX}/packages/ && ls ${file_patterns} >/dev/null 2>&1); then
cd ${BUILDPREFIX}/packages/ && rm - fv ${file_patterns}
fi
fi
mv $(dirname ${packagepath})/*.deb ${BUILDPREFIX}/packages/
}
build_wab() {
print_banner "Building the WAB Packages"
local DISTDIR=${BUILDPREFIX}/wab/build/build/target/Debian/${DISTVERSION}
local release_option="-D unstable"
if ( echo "${wab_version}" | grep - qs "^tags/" ); then
release_option="-D stable"
fi
_patch_debian_files
_create_install_files
pushd $BUILDPREFIX/wab
rm - f debian/changelog
dch --create $release_option - v ${final_version} --package $WABNAME --empty "Release ${final_version}"
# Build packages based on debian/rules makefile
# Use - b to only create binary packages.
# FIXME: should be fine to sign the packages....
if [ - n "$clean_wab" ]; then
dpkg-buildpackage - r - tc - b - us - uc
else
dpkg-buildpackage - r - b - us - uc
fi
popd
if ( ls ${BUILDPREFIX}/*.deb >/dev/null 2>&1 ); then
# remove older versions of the compiled packages
file_patterns=$((for F in $(cd ${BUILDPREFIX}/ ; ls *.deb); do echo ${F/_*_/_*_}; done) | tr '\n' ' ')
if (cd ${BUILDPREFIX}/packages/ && ls ${file_patterns} >/dev/null 2>&1); then
cd ${BUILDPREFIX}/packages/ && rm - fv ${file_patterns}
fi
fi
mv ${BUILDPREFIX}/*.deb ${BUILDPREFIX}/packages/
for wab_package in $WAB_PACKAGES; do
_build_wab_package ${wab_package}
done
}
prepare_webhelp_dependencies() {
debug "prepare_webhelp_dependencies"
pushd $BUILDPREFIX/wab/doc/manuals
if [ ! - d docbook-xsl-ns-1.78.1 ]; then
ln - s $VIRTUAL_ENV_DIR/${build_virtualenv}/opt/docbook-xsl-ns-1.78.1 docbook-xsl-ns-1.78.1
fi
if [ ! - d docbook-xsl ]; then
ln - s docbook-xsl-ns-1.78.1 docbook-xsl
fi
if [ ! - d apache-ant-1.8.0 ]; then
ln - s $VIRTUAL_ENV_DIR/${build_virtualenv}/opt/apache-ant-1.8.0 apache-ant-1.8.0
fi
if [ ! - d saxonb9.1.0.8j ]; then
ln - s $VIRTUAL_ENV_DIR/${build_virtualenv}/opt/saxonb9.1.0.8j saxonb9.1.0.8j
fi
popd
}
prepare_pdf_dependencies() {
debug "prepare_pdf_dependencies"
pushd $BUILDPREFIX/wab/doc/manuals
if [ ! - d fonts ]; then
ln - s /home/dev/fonts fonts
fi
popd
}
build_webhelp() {
print_banner "Building the WebHelp Package"
local release_option="-D unstable"
if ( echo "${wab_version}" | grep - qs "^tags/" ); then
release_option="-D stable"
fi
pushd $BUILDPREFIX/wab/doc/manuals
prepare_webhelp_dependencies
[ - d ${BUILDPREFIX}/docs ] || mkdir ${BUILDPREFIX}/docs
rm - f debian/changelog
dch --create $release_option - v ${final_version} --package wabwebhelp --empty "Release ${final_version}"
# Build packages based on debian/rules makefile
# Use - b to only create binary packages.
# FIXME: should be fine to sign the packages....
if [ - n "$clean_wab" ]; then
dpkg-buildpackage - r - tc - b - us - uc
# Extract webhelp from generated deb and zip it
dpkg-deb - x ${BUILDPREFIX}/wab/doc/wabwebhelp_*.deb ${BUILDPREFIX}/docs/wabwebhelp_tmp
cd ${BUILDPREFIX}/docs/wabwebhelp_tmp/opt/wab/share/sitedjango
zip - qr ${BUILDPREFIX}/docs/wab-${build_version}-webhelp. zip webhelp
cd ${BUILDPREFIX}/docs
rm - rf wabwebhelp_tmp/
else
dpkg-buildpackage - r - b - us - uc
cp debian/wabwebhelp/webhelp. zip ${BUILDPREFIX}/docs/wab-${build_version}-webhelp. zip
fi
popd
mv ${BUILDPREFIX}/wab/doc/*.deb ${BUILDPREFIX}/packages/
}
checkout_doc () {
print_banner "Checking Out WAB doc"
# Note: this will update the doc sources, as it should have been already checked out by WAB build
svn export --force ${SVNBASEURL}/wab/${wab_version}/doc ${BUILDPREFIX}/wab/doc
svn export --force ${SVNBASEURL}/wab/${wab_version}/build/repository/upstream/logs ${BUILDPREFIX}/wab/build/repository/upstream/logs
svn export --force ${SVNBASEURL}/wab/${wab_version}/build/repository/wab/logs ${BUILDPREFIX}/wab/build/repository/wab/logs
}
build_doc() {
print_banner "Building the doc archive"
local doc_folder="~/repositories/docs"
pushd $BUILDPREFIX/wab/doc
prepare_webhelp_dependencies
prepare_pdf_dependencies
[ - d ${BUILDPREFIX}/docs ] || mkdir ${BUILDPREFIX}/docs
[ ! - d build_tmp/ ] || rm - rf build_tmp/
mkdir - p build_tmp/doc
bash - c "shopt - s extglob
cp - lr!(build_tmp) build_tmp/doc/"
[ - d build_tmp/build/repository/upstream/logs ] || mkdir - p build_tmp/build/repository/upstream/logs
cp - lr../build/repository/upstream/logs/result. list build_tmp/build/repository/upstream/logs/
[ - d build_tmp/build/repository/wab/logs ] || mkdir - p build_tmp/build/repository/wab/logs
cp - lr../build/repository/wab/logs/result. list build_tmp/build/repository/wab/logs/
cd build_tmp/doc/
make archive
if [ ! - f ${BUILDPREFIX}/docs/wab-${build_version}-webhelp. zip ]; then
cd manuals
make webhelp-oxygen
mv webhelp. zip ${BUILDPREFIX}/docs/wab-${build_version}-webhelp. zip
cd..
fi
zip - u ${BUILDPREFIX}/docs/wab-${build_version}-webhelp. zip rn-*-*.html
mv ${BUILDPREFIX}/wab/doc/build_tmp/doc/wab-*-docs. zip ${BUILDPREFIX}/docs/wab-${build_version}-docs. zip
if [ - n "$clean_wab" ]; then
cd../..
rm - rf build_tmp/
fi
popd
}
publish_doc() {
print_banner "Publishing docs"
local doc_folder="~/repositories/docs"
copy_to_repo_host ${BUILDPREFIX}/docs/wab-*.zip ${doc_folder}
}
#
# Tools Building Routines
#
TOOLS=""
clean_tools_modules () {
print_banner "Cleaning Tools Modules"
for tool in $TOOLS; do
rm - Rf ${BUILDPREFIX}/tools/${tool}
done
}
_checkout_tool() {
local tool=$1
svn export ${SVNBASEURL}/tools/${tool}/${tools_version}/ ${BUILDPREFIX}/tools/${tool}/
# we need to retrieve the correct version of the debian directory
|
Из за большого объема этот материал размещен на нескольких страницах:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |


