Партнерка на США и Канаду по недвижимости, выплаты в крипто
- 30% recurring commission
- Выплаты в USDT
- Вывод каждую неделю
- Комиссия до 5 лет за каждого referral
create a new debian repository partial mirror from debian. org
Use this for example to initialize a new debian release
'--commit_upstream_repo_logs=0' will not commit reprepro logs and resulting package list
- 'update_debian_repository' [--debian_repository=...] [--commit_upstream_repo_logs=1]
update a debian repository partial mirror from debian. org
Use this to update the trunk repository or a new clone
Do not update a frozen repository!!!
'--commit_upstream_repo_logs=0' will not commit reprepro logs and resulting package list
- 'clone_debian_repository' [--parent_debian_repository=...] [--debian_repository=...] [--commit_upstream_repo_logs=1]
clone an existing debian repository partial mirror to be frozen
Use this when in need to update a frozen repo. Please first change the variable debian_repository in SVN
to reference the new repo.
'--commit_upstream_repo_logs=0' will not commit reprepro logs and resulting package list
- 'check_debian_repository_updates' [--debian_repository=...]
check if the parent repository contains new updates and email the list of
changes
- 'recreate_debian_repository' [--debian_repository=...]
recreate a debian repository from snapshot. debian. org and the list of packages
Use this for example to rebuild a tag for which you haven't kept the debian repo
- 'to_archive' [--save_revision=1]
make an archive of all what is needed to rebuild the product on a standalone system
- 'extract_sources'
extract sources from the source archive to build locally
- 'extract_wallix_build_conf'
extract wallix-build repository conf from the source archive to build locally
- 'extract_repository_conf'
extract wab repository conf from the source archive to build locally
- 'extract_preseed'
extract preseed directory from the source archive to build locally
- 'extract_usb'
extract usb creation directory from the source archive to build locally
- 'to_usb'
build usb locally on a standalone system
EOF
}
_initargs () {
# options
help=0
syslog=0
config=""
# build_version=""
# tools_version=""
# extras_version=""
# rdp_version=""
# sashimi_version=""
# adminkit_version=""
# uwsgi_version=""
clean_wab_sources=1
clean_tools_sources=1
clean_extras_sources=1
clean_rdp_sources=0
clean_sashimi_sources=0
clean_adminkit_sources=0
clean_uwsgi_sources=0
sashimi_export=0
rdp_export=0
adminkit_export=0
uwsgi_export=0
clean_wab=1
clean_tools=1
clean_extras=1
clean_adminkit=1
clean_uwsgi=1
local_wallix_build_repo=0
local_wab_repo=0
commit_upstream_repo_logs=1
commit_product_repo_logs=1
prepare_wallix_build_repo=1
save_revision=""
# repository=""
# commands
_setup=0
_clean_packages=0
_checkout_wab=0
_checkout_tools=0
_checkout_extras=0
_checkout_adminkit=0
_checkout_uwsgi=0
_checkout_rdp=0
_checkout_sashimi=0
_checkout_doc=0
_build_wab=0
_build_tools=0
_build_extras=0
_build_adminkit=0
_build_uwsgi=0
_build_rdp=0
_build_sashimi=0
_build_webhelp=0
_build_doc=0
_checkout_preseed=0
_to_preseed=0
_checkout_wallix_build_conf=0
_checkout_repository_conf=0
_to_repository=0
_publish_doc=0
_checkout_usb=0
_to_usb=0
_create_debian_repository=0
_update_debian_repository=0
_clone_debian_repository=0
_recreate_debian_repository=0
_to_archive=0
_extract_sources=0
_extract_preseed=0
_extract_wallix_build_conf=0
_extract_repository_conf=0
_extract_usb=0
_send_email=0
_distro=$(cat /etc/debian_version | cut - d '.' - f 1)
if [[ "$_distro" == "8" ]]; then
_distro="jessie"
else
_distro="wheezy"
fi
}
_validateargs () {
if [ - n "$config" ]; then
CONFFILE=$config
fi
if [ $_setup = 1 ]; then
if [ - z "$build_user" ]; then
usage "You need to give the build user."
exit 1
fi
fi
if [ $_build_wab = 1 ]; then
if [ - z "$build_version" ]; then
usage "You need to give the version of the WAB you want to build."
exit 1
fi
fi
if [ $_build_adminkit = 1 ]; then
if [ - z "$adminkit_version" ]; then
usage "You need to give the version of adminkit you want to build."
exit 1
fi
:
fi
if [ $_build_uwsgi = 1 ]; then
if [ - z "$uwsgi_version" ]; then
usage "You need to give the version of uwsgi you want to build."
exit 1
fi
:
fi
if [ $_build_tools = 1 ]; then
if [ - z "$tools_version" ]; then
usage "You need to give the version of the tools you want to build."
exit 1
fi
fi
if [ $_build_extras = 1 ]; then
if [ - z "$extras_version" ]; then
usage "You need to give the version of the extra packages you want to build."
exit 1
fi
fi
if [ $_build_rdp = 1 ]; then
if [[ - z "$rdp_version" && $checkout_rdp = 1 ]]; then
usage "You need to give the version of ReDemPtion you want to build."
exit 1
fi
fi
if [ $_build_sashimi = 1 ]; then
if [[ - z "$sashimi_version" && $checkout_sashimi = 1 ]]; then
usage "You need to give the version of SaSHimi you want to build."
exit 1
fi
fi
if [ $_to_repository = 1 ]; then
if [ - z "$repository" ]; then
print_banner "WARNING: repository URL not given; TRYING to construct the correct one..."
fi
fi
if [ $_create_debian_repository = 1 ] || [ $_update_debian_repository = 1 ] || [ $_recreate_debian_repository = 1 ]; then
if [ - z "$debian_repository" ]; then
print_banner "WARNING: debian repository name not given; TRYING to construct the correct one..."
debian_repository=${repository}-debian
fi
fi
if [ $_clone_debian_repository = 1 ]; then
if [ - z "$parent_debian_repository" ]; then
usage "You need to give a parent debian repository to clone from."
exit 1
fi
if [ - z "$debian_repository" ]; then
print_banner "WARNING: destination debian repository name not given; TRYING to construct the correct one..."
debian_repository=${repository}-debian
fi
fi
if [ $_to_archive = 1 ]; then
if [ - z "$save_revision" ]; then
save_revision=1
fi
else
if [ - z "$save_revision" ]; then
save_revision=0
fi
fi
}
get_revision() {
if [ "_$save_revision" != "_1" ] && [ - f $REVISIONFILE ]; then
# get package version from the revision file
local - i revision="$(cat $REVISIONFILE)"
else
# compute package version based on last svn revision
local revision="$(LC_ALL= LANG=C svn info ${SVNBASEURL}/wab/${wab_version} | sed - n 's/^Last Changed Rev: //p')"
if [ - z "$revision" ]; then
revision="0"
fi
if [ "_$save_revision" = "_1" ]; then
local last_build_revision="$(LC_ALL= LANG=C svn info ${SVNBASEURL}/wab/${wab_version}/build/repository/wab/logs/result. list | sed - n 's/^Last Changed Rev: //p')"
if [ "$revision" != "$last_build_revision" ] && \
( [ - z "$last_build_revision" ] || \
( svn diff --summarize - r $revision:$last_build_revision |cut - c 9-|grep - Ev "^doc/[^/]*" >/dev/null ) \
); then
# the build was never done or is not up to date because there was something committed outside of the release note since the last build
echo "Last revision was never built. Please build it." >&2
exit 1
fi
if [ - n "$last_build_revision" ]; then
# we need the revision number of the build, just before the build result was committed
revision=$(( $last_build_revision - 1 ))
fi
fi
if [ "_$save_revision" = "_1" ]; then
echo >$REVISIONFILE "$revision"
fi
fi
final_version="${build_version}.${revision}-$(basename ${wab_version})-wallix1"
}
main() {
if [ $_setup = 1 ]; then
if [ "$EUID" != 0 ]; then
usage "This command must be run as root."
exit 1
fi
install_dev_packages;
return 0
fi
# the following commands should be called as a simple user
if [ "$EUID" = 0 ]; then
usage "These command should not be run as superuser"
exit 1
fi
get_revision
wabinstallprefix=/opt/wab
upload_folder="~/upload/dists/wallix-build/${DISTNAME}/${_distro}"
if [ $_clean_packages = 1 ]; then
clean_packages
fi
if [ "_$_checkout_wab" = "_1" ]; then
if [ "_$clean_wab_sources" = "_1" ]; then
clean_wab_modules
fi
checkout_wab_modules
fi
if [ "_$_checkout_tools" = "_1" ]; then
if [ "_$clean_tools_sources" = "_1" ]; then
clean_tools_modules
|
Из за большого объема этот материал размещен на нескольких страницах:
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 |


