59ea7de506e22ca9034749109178762a73b657b9
[feisty_meow.git] / scripts / rev_control / puffer.sh
1 #!/bin/bash
2
3 # puffer: "puffs out" all of the folders present in the REPOSITORY_LIST
4 # variable, which causes the repo to be merged with its remote versions.
5 # this enables a clean check-in; after puffer runs, there will be no secret
6 # upstream changes that could mess up the git push (svn and cvs are not
7 # supported in this script, since they branch differently than git).
8
9 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
10 source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh"
11
12 save_terminal_title
13
14 ##############
15
16 echo "puffing out repositories at: $(date)"
17
18 FULL_LIST=" $(dirname $FEISTY_MEOW_APEX) $HOME "
19 if [ "$OS" == "Windows_NT" ]; then
20   FULL_LIST+=" c:/ d:/ e:/ "
21 fi
22
23 puff_out_list $FULL_LIST
24 exit_on_error "puffing out list: $FULL_LIST"
25
26 ##############
27
28 # regenerate the scripts after puffing out, since this could mean a modified version
29 # of feisty meow is present.
30 regenerate
31
32 ##############
33
34 restore_terminal_title