Revision 8e3ab0e2
b/arch-scripts/grep_xseg.sh | ||
---|---|---|
6 | 6 |
|
7 | 7 |
set -e #exit on error |
8 | 8 |
|
9 |
# Find script location |
|
10 |
ARCH_SCRIPTS=$(dirname "$(readlink /proc/$$/fd/255)") |
|
11 |
|
|
9 | 12 |
#Include basic functions |
10 |
source /home/$(logname)/archipelago/arch-scripts/init.sh
|
|
13 |
source $ARCH_SCRIPTS/init.sh
|
|
11 | 14 |
|
12 | 15 |
SED_XSEG=$(echo "${XSEG}/" | sed 's/\//\\\//g') |
13 | 16 |
INCLUDE="--include=*.c --include=*.h" |
b/arch-scripts/init.sh | ||
---|---|---|
16 | 16 |
echo -e "${txtgrn}${1}${txtrst}" |
17 | 17 |
} |
18 | 18 |
|
19 |
XSEG=/home/$(logname)/archipelago/xseg |
|
19 |
#ARCH_SCRIPTS must be already set by the caller function |
|
20 |
XSEG=$ARCH_SCRIPTS/../xseg |
|
20 | 21 |
|
b/arch-scripts/make_xseg.sh | ||
---|---|---|
6 | 6 |
|
7 | 7 |
set -e #exit on error |
8 | 8 |
|
9 |
# Find script location |
|
10 |
ARCH_SCRIPTS=$(dirname "$(readlink /proc/$$/fd/255)") |
|
11 |
|
|
9 | 12 |
#Include basic functions |
10 |
source /home/$(logname)/archipelago/arch-scripts/init.sh
|
|
13 |
source $ARCH_SCRIPTS/init.sh
|
|
11 | 14 |
|
12 | 15 |
PIPE="1>/dev/null" |
13 | 16 |
|
Also available in: Unified diff