space-accessstablestage
|
Last change
on this file since f6982d4 was
e2ceffa,
checked in by Alex Dehnert <adehnert@…>, 13 years ago
|
|
Add list of lock types and assign them to rooms
|
-
Property mode set to
100755
|
|
File size:
977 bytes
|
| Line | |
|---|
| 1 | #!/bin/bash -e |
|---|
| 2 | |
|---|
| 3 | author="$USER diff_static_data.sh on $(hostname) <asa-db@mit.edu>" |
|---|
| 4 | |
|---|
| 5 | date |
|---|
| 6 | |
|---|
| 7 | cd static-data |
|---|
| 8 | |
|---|
| 9 | ../dump_group_perms.py > group-perms.py |
|---|
| 10 | git add group-perms.py |
|---|
| 11 | |
|---|
| 12 | ../../manage.py dumpdata --format=xml --indent=4 groups.ActivityCategory > groups_initial_data.xml |
|---|
| 13 | ../../manage.py dumpdata --format=xml --indent=4 forms.FYSMCategory > forms_initial_data.xml |
|---|
| 14 | ../../manage.py dumpdata --format=xml --indent=4 space.LockType --format=xml --indent=4 > space_lock_types.xml |
|---|
| 15 | git add {groups,forms}_initial_data.xml space_lock_types.xml |
|---|
| 16 | |
|---|
| 17 | echo |
|---|
| 18 | echo Committing current static data: |
|---|
| 19 | set +e |
|---|
| 20 | git commit -m "Updated static data: $(date +%F)" --author="$author" |
|---|
| 21 | commit_result="$?" |
|---|
| 22 | set -e |
|---|
| 23 | |
|---|
| 24 | if [ "$commit_result" = "0" ]; then |
|---|
| 25 | echo |
|---|
| 26 | echo Changes in this commit: |
|---|
| 27 | git show |
|---|
| 28 | else |
|---|
| 29 | echo "(No changes made.)" |
|---|
| 30 | fi |
|---|
| 31 | |
|---|
| 32 | echo |
|---|
| 33 | echo |
|---|
| 34 | echo Disk usage: |
|---|
| 35 | du -h --max-depth=1 |
|---|
| 36 | |
|---|
| 37 | echo |
|---|
| 38 | echo "gc'ing..." |
|---|
| 39 | time git gc |
|---|
| 40 | echo "repack'ing..." |
|---|
| 41 | time git repack |
|---|
| 42 | |
|---|
| 43 | echo |
|---|
| 44 | echo Disk usage: |
|---|
| 45 | du -h --max-depth=1 |
|---|
| 46 | |
|---|
| 47 | date |
|---|
Note: See
TracBrowser
for help on using the repository browser.