blob: ad2b09ed4209eea2d4fce3fcbef798592dc6dd50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Sample file demonstrating an easy method for running the
# git sources without the need for installing.
# Edit the paths below and save the file as "testpath"
# the file will be ignored by git.
# Example usage:
# $ cd dev/git/esearch
# $ source ./testpath
# $ esearch some-package
if [[ "$SHELL" =~ "zsh" ]]; then
export PATH="$(dirname $0)/../pyGPG/bin:$(dirname $0)/gkeys/bin:$(dirname $0)/gkeys-ldap/bin:$(dirname $0)/gkeys-gen/bin:${PATH}"
export PYTHONPATH="$(dirname $0)/../pyGPG/:$(dirname $0)/../ssl-fetch/:$(dirname $0)/gkeys/:$(dirname $0)/gkeys-ldap/:$(dirname $0)/gkeys-gen/:${PYTHONPATH}"
else
export PATH="$(dirname $BASH_SOURCE[0])/../pyGPG/bin:$(dirname $BASH_SOURCE[0])/gkeys/bin:$(dirname $BASH_SOURCE[0])/gkeys-ldap/bin:$(dirname $BASH_SOURCE[0])/gkeys-gen/bin:${PATH}"
export PYTHONPATH="$(dirname $BASH_SOURCE[0])/../pyGPG/:$(dirname $BASH_SOURCE[0])/../ssl-fetch/:$(dirname $BASH_SOURCE[0])/gkeys/:$(dirname $BASH_SOURCE[0])/gkeys-gen/:$(dirname $BASH_SOURCE[0])/gkeys-ldap/:${PYTHONPATH}"
fi
# Create our LICENSE and README.md hardlinks
# This way we only need one copy of each file,
# but they get included in all 3 pkgs
ln LICENSE gkeys/LICENSE
ln LICENSE gkeys-gen/LICENSE
ln LICENSE gkeys-ldap/LICENSE
ln README.md gkeys/README.md
ln README.md gkeys-gen/README.md
ln README.md gkeys-ldap/README.md
# Create the py2man symlinks for generating our man pages.
cd gkeys
ln -s ../py2man py2man
cd ../gkeys-gen
ln -s ../py2man py2man
cd ../gkeys-ldap
ln -s ../py2man py2man
cd ..
|