space-accessstablestage
Last change
on this file was
3c1b20b,
checked in by Alex Dehnert <adehnert@…>, 12 years ago
|
Merge branch 'master' into space-access
- master: (43 commits)
Color NGEs differently from inactive groups
Don't add NGEs to asa-official (ASA-#231)
Take is_active out of str(GroupStatus?) (ASA-#230)
Add group status to account lookup (ASA-#203)
Add help text about Athena lockername selection
Sort the "Update people" page (partial ASA-#232)
Sort the signatories page (partial ASA-#232)
Sort the officers of a group (partial ASA-#232)
Validate P/T usernames in group creation form
Remove spurious slash in new group email (ASA-#217)
Use absolute path to templates (ASA-#211)
Show group status on the non-student officers page
Prevent 500'ing while uploading midway assignments
"Upload table assignments" link (ASA-#225)
Add midway tab
Add midway list page (ASA-#226)
Handle duplicate groups
Fix spelling of midway permission
Add the midway permissions to the asa-ebm group
Allow running diff_static_data from any directory
...
Conflicts:
asadb/space/admin.py
|
-
Property mode set to
100755
|
File size:
995 bytes
|
Rev | Line | |
---|
[728cafa] | 1 | #!/bin/bash -e |
---|
| 2 | |
---|
| 3 | author="$USER diff_static_data.sh on $(hostname) <asa-db@mit.edu>" |
---|
| 4 | |
---|
| 5 | date |
---|
| 6 | |
---|
[aab0dc8] | 7 | cd "$(dirname "$0")/static-data" |
---|
[728cafa] | 8 | |
---|
| 9 | ../dump_group_perms.py > group-perms.py |
---|
| 10 | git add group-perms.py |
---|
| 11 | |
---|
[c060d8c] | 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 |
---|
[e2ceffa] | 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 |
---|
[728cafa] | 16 | |
---|
| 17 | echo |
---|
[1f4cc3c] | 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 |
---|
[728cafa] | 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.