Project

General

Profile

« Previous | Next » 

Revision 11416

bin/*_all: *_main(): renamed to just main() because it does not matter that other shell-includes' main() methods will clobber this, because it is only executed once

View differences:

bin/with_all
3 3
# Creates a job in the calling shell for each process.
4 4
# Must be run from the root svn directory.
5 5

  
6
with_all_main ()
6
main()
7 7
{
8 8
    local self="${BASH_SOURCE[0]}"
9 9
    local selfDir="$(dirname -- "$self")"
......
24 24
        sleep 2 # wait for initial output so that outputs don't become jumbled
25 25
    done
26 26
}
27
with_all_main "$@"
27
main "$@"
bin/import_all
1 1
#!/bin/bash
2 2
# Imports all inputs at once
3 3

  
4
import_all_main ()
4
main()
5 5
{
6 6
    local self="${BASH_SOURCE[0]}"
7 7
    local selfDir="$(dirname -- "$self")"
......
51 51
    
52 52
    . bin/disown_all
53 53
}
54
import_all_main "$@"
54
main "$@"
bin/reinstall_all
1 1
#!/bin/bash
2 2
# Reinstalls all inputs at once
3 3

  
4
reinstall_all_main ()
4
main()
5 5
{
6 6
    local self="${BASH_SOURCE[0]}"
7 7
    local selfDir="$(dirname -- "$self")"
......
13 13
    
14 14
    hidden_srcs=1; . "$selfDir/with_all" 'reinstall quiet=1'
15 15
}
16
reinstall_all_main "$@"
16
main "$@"

Also available in: Unified diff