This commit is contained in:
Jan Mette 2010-03-27 18:00:46 +00:00
parent 4bcbf5665c
commit b851a3d12a
17 changed files with 25 additions and 20 deletions

View File

@ -16,7 +16,7 @@
# #
# setup # setup
# #
_script_name="BUILD(ER)" _script_name="build(er)"
_build_arch="$_arch" _build_arch="$_arch"
_cur_repo=`pwd | awk -F '/' '{print $NF}'` _cur_repo=`pwd | awk -F '/' '{print $NF}'`
_needed_functions="config_handling messages dependency_handling" _needed_functions="config_handling messages dependency_handling"

View File

@ -16,7 +16,7 @@
# #
# setup # setup
# #
_script_name="CLEAN BUILD PKGS" _script_name="clean build pkgs"
_build_arch="$_arch" _build_arch="$_arch"
_cur_repo=`pwd | awk -F '/' '{print $NF}'` _cur_repo=`pwd | awk -F '/' '{print $NF}'`
_needed_functions="config_handling messages" _needed_functions="config_handling messages"

View File

@ -16,7 +16,7 @@
# #
# setup # setup
# #
_script_name="CLEAN WORK DIRECTORY" _script_name="clean work directory"
_build_arch="$_arch" _build_arch="$_arch"
_cur_repo=`pwd | awk -F '/' '{print $NF}'` _cur_repo=`pwd | awk -F '/' '{print $NF}'`
_needed_functions="config_handling messages" _needed_functions="config_handling messages"

View File

@ -16,7 +16,7 @@
# #
# setup # setup
# #
_script_name="UPLOAD PACKAGES" _script_name="upload packages"
_build_arch="$_arch" _build_arch="$_arch"
_cur_repo=`pwd | awk -F '/' '{print $NF}'` _cur_repo=`pwd | awk -F '/' '{print $NF}'`
_needed_functions="config_handling helpers messages" _needed_functions="config_handling helpers messages"

View File

@ -16,7 +16,7 @@
# #
# setup # setup
# #
_script_name="DECREASE PKGRELS" _script_name="decrease pkgrels"
_build_arch="$_arch" _build_arch="$_arch"
_cur_repo=`pwd | awk -F '/' '{print $NF}'` _cur_repo=`pwd | awk -F '/' '{print $NF}'`
_needed_functions="config_handling helpers messages" _needed_functions="config_handling helpers messages"

View File

@ -16,7 +16,7 @@
# #
# setup # setup
# #
_script_name="INCREASE PKGRELS" _script_name="increase pkgrels"
_build_arch="$_arch" _build_arch="$_arch"
_cur_repo=`pwd | awk -F '/' '{print $NF}'` _cur_repo=`pwd | awk -F '/' '{print $NF}'`
_needed_functions="config_handling helpers messages" _needed_functions="config_handling helpers messages"

View File

@ -16,7 +16,7 @@
# #
# setup # setup
# #
_script_name="RESET PKGRELS" _script_name="reset pkgrels"
_build_arch="$_arch" _build_arch="$_arch"
_cur_repo=`pwd | awk -F '/' '{print $NF}'` _cur_repo=`pwd | awk -F '/' '{print $NF}'`
_needed_functions="config_handling helpers messages" _needed_functions="config_handling helpers messages"

View File

@ -4,7 +4,7 @@
curdir=`pwd` curdir=`pwd`
repodir="_repo/repo" repodir="_repo/repo"
_script_name="GEN REBUILD LIST" _script_name="gen rebuild list"
_build_arch="$_arch" _build_arch="$_arch"
_cur_repo=`pwd | awk -F '/' '{print $NF}'` _cur_repo=`pwd | awk -F '/' '{print $NF}'`
_needed_functions="config_handling messages" _needed_functions="config_handling messages"

View File

@ -25,7 +25,7 @@
curdir=`pwd` curdir=`pwd`
repodir="_repo/repo" repodir="_repo/repo"
_script_name="GEN REBUILD LIST" _script_name="gen rebuild list"
_build_arch="$_arch" _build_arch="$_arch"
_cur_repo=`pwd | awk -F '/' '{print $NF}'` _cur_repo=`pwd | awk -F '/' '{print $NF}'`
_needed_functions="config_handling messages" _needed_functions="config_handling messages"
@ -91,11 +91,11 @@ for pkg in $(ls $directory/*.pkg.*); do
status_done status_done
done done
status_start "saving rebuildlist-$package.txt" status_start "saving _temp/rebuildlist-$package.txt"
cp $tmpdir/rebuildlist-$package.txt $startdir/_temp/ cp $tmpdir/rebuildlist-$package.txt $startdir/_temp/
status_done status_done
newline newline
title2 "All done" title2 "All done, rebuild list created in _temp/"
newline newline

View File

@ -16,7 +16,7 @@
# #
# setup # setup
# #
_script_name="REPOCLEAN --> BUILD" _script_name="repoclean local"
_build_arch="$_arch" _build_arch="$_arch"
_cur_repo=`pwd | awk -F '/' '{print $NF}'` _cur_repo=`pwd | awk -F '/' '{print $NF}'`
_needed_functions="config_handling messages" _needed_functions="config_handling messages"

View File

@ -16,7 +16,7 @@
# #
# setup # setup
# #
_script_name="REPOCLEAN --> REPO" _script_name="repoclean remote"
_build_arch="$_arch" _build_arch="$_arch"
_cur_repo=`pwd | awk -F '/' '{print $NF}'` _cur_repo=`pwd | awk -F '/' '{print $NF}'`
_needed_functions="config_handling messages" _needed_functions="config_handling messages"

View File

@ -16,7 +16,7 @@
# #
# setup # setup
# #
_script_name="CONFIGURATION" _script_name="configuration"
_build_arch="$_arch" _build_arch="$_arch"
_cur_repo=`pwd | awk -F '/' '{print $NF}'` _cur_repo=`pwd | awk -F '/' '{print $NF}'`
_needed_functions="config_handling helpers messages" _needed_functions="config_handling helpers messages"

View File

@ -16,7 +16,7 @@
# #
# setup # setup
# #
_script_name="PACKAGE LISTS" _script_name="package lists"
_build_arch="$_arch" _build_arch="$_arch"
_cur_repo=`pwd | awk -F '/' '{print $NF}'` _cur_repo=`pwd | awk -F '/' '{print $NF}'`
_needed_functions="config_handling helpers messages" _needed_functions="config_handling helpers messages"

View File

@ -16,7 +16,7 @@
# #
# setup # setup
# #
_script_name="SYNC DOWN/UP PACKAGES" _script_name="sync complete"
_build_arch="$_arch" _build_arch="$_arch"
_cur_repo=`pwd | awk -F '/' '{print $NF}'` _cur_repo=`pwd | awk -F '/' '{print $NF}'`
_needed_functions="config_handling helpers messages" _needed_functions="config_handling helpers messages"
@ -31,6 +31,7 @@ done
# #
sync_complete() sync_complete()
{ {
title2 "syncing down"
export RSYNC_PASSWORD=`echo $_rsync_pass` export RSYNC_PASSWORD=`echo $_rsync_pass`
rsync -avh --progress $_rsync_user@$_rsync_server::$_rsync_dir/* _repo/remote/ rsync -avh --progress $_rsync_user@$_rsync_server::$_rsync_dir/* _repo/remote/
@ -50,7 +51,7 @@ sync_complete()
popd popd
# sync local -> server # sync local -> server
title2 "sync local -> server" title2 "syncing up"
rsync -avh --progress --delay-updates --delete-after _repo/remote/ $_rsync_user@$_rsync_server::$_rsync_dir rsync -avh --progress --delay-updates --delete-after _repo/remote/ $_rsync_user@$_rsync_server::$_rsync_dir
} }
@ -66,6 +67,7 @@ check_rsync
check_accounts check_accounts
time sync_complete time sync_complete
newline
title "All done" title "All done"
newline newline

View File

@ -16,7 +16,7 @@
# #
# setup # setup
# #
_script_name="SYNC DOWN PACKAGES" _script_name="sync down"
_build_arch="$_arch" _build_arch="$_arch"
_cur_repo=`pwd | awk -F '/' '{print $NF}'` _cur_repo=`pwd | awk -F '/' '{print $NF}'`
_needed_functions="config_handling helpers messages" _needed_functions="config_handling helpers messages"
@ -31,6 +31,7 @@ done
# #
sync_down() sync_down()
{ {
title2 "syncing down"
export RSYNC_PASSWORD=`echo $_rsync_pass` export RSYNC_PASSWORD=`echo $_rsync_pass`
rsync -avh --progress $_rsync_user@$_rsync_server::$_rsync_dir/* _repo/remote/ rsync -avh --progress $_rsync_user@$_rsync_server::$_rsync_dir/* _repo/remote/
} }
@ -47,6 +48,7 @@ check_rsync
check_accounts check_accounts
time sync_down time sync_down
newline
title "All done" title "All done"
newline newline

View File

@ -16,7 +16,7 @@
# #
# setup # setup
# #
_script_name="UPLOAD PACKAGES" _script_name="sync down nodb"
_build_arch="$_arch" _build_arch="$_arch"
_cur_repo=`pwd | awk -F '/' '{print $NF}'` _cur_repo=`pwd | awk -F '/' '{print $NF}'`
_needed_functions="config_handling helpers messages" _needed_functions="config_handling helpers messages"
@ -54,6 +54,7 @@ check_rsync
check_accounts check_accounts
time sync_up time sync_up
newline
title "All done" title "All done"
newline newline

View File

@ -16,7 +16,7 @@
# #
# setup # setup
# #
_script_name="SYNC UP PACKAGES" _script_name="sync up"
_build_arch="$_arch" _build_arch="$_arch"
_cur_repo=`pwd | awk -F '/' '{print $NF}'` _cur_repo=`pwd | awk -F '/' '{print $NF}'`
_needed_functions="config_handling helpers messages" _needed_functions="config_handling helpers messages"