529fae19b59e8e363602dd716222b1d419fc5d29
[feisty_meow.git] / scripts / rev_control / rgetem.sh
1 #!/bin/bash
2 # a simple script for updating a set of folders from subversion or git.
3 # this can take a directory as parameter, but will default to the current
4 # working directory.  all the directories under the passed directory will
5 # be examined.
6
7 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
8 source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh"
9
10 save_terminal_title
11
12 ##############
13
14 dir="$1"; shift
15 if [ -z "$dir" ]; then
16   dir=.
17 fi
18
19 pushd "$dir" &>/dev/null
20 exit_on_error "changing to directory: $dir"
21 tempfile=$(generate_rev_ctrl_filelist)
22 exit_on_error "generating revision control file list"
23 popd &>/dev/null
24
25 perform_revctrl_action_on_file "$tempfile" do_revctrl_simple_update
26 exit_on_error "running revision control update"
27
28 restore_terminal_title
29