Project

General

Profile

« Previous | Next » 

Revision 10576

bin/import_all: don't set $dump_opts until running the backup command that uses it, so that the user can run this backup command separately just by copying the line out of the script (without worrying about env vars that need to be set, other than $version which is visible outside the script)

View differences:

import_all
13 13
        return 2
14 14
    fi
15 15
    : ${version=$(make -s version)}
16
    local dump_opts=${dump_opts---exclude-schema=public} full_import=1
17
    export version dump_opts full_import
16
    local full_import=1
17
    export version full_import
18 18
    
19 19
    make schemas/$version/install
20 20
    
......
48 48
        bin/make_analytical_db
49 49
        
50 50
        make backups/TNRS.backup-remake &
51
        make backups/vegbien.$version.backup/test & # uses $dump_opts
51
        dump_opts=${dump_opts---exclude-schema=public} \
52
make backups/vegbien.$version.backup/test &
52 53
        wait # wait for asynchronous commands
53 54
    }
54 55
    

Also available in: Unified diff