Skip to content

Commit ad76745

Browse files
authored
added asgs-lint to its own repo, "fetch asgs-lint" now updates from there; also part of default install via asgs-brew.pl (#1427)
Issue 1426: asgs-lint is now part of the default install with this commit; to update it, run "fetch asgs-lint". asgs-lint is also now in its own repository. The changes to bin/fetch also make it possible to add additional things in fetch to the default installation, like asgs-mon. * spliis off bin/asgs-lint to a "fetch"'d repo * Added asgs-lint to "fetch" and made it part of the initial install Resolves #1426. Resolves #1441.
1 parent 1505f0a commit ad76745

15 files changed

+125
-1242
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ profiles/
3838
*.nc
3939
git/
4040
asgs_config*
41+
bin/asgs-lint

bin/asgs-lint

-1,167
This file was deleted.

bin/fetch

+42-28
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
#!/usr/bin/env bash
22

33
if [ -z "$_ASGSH_PID" ]; then
4-
echo "This script is meant to run inside of the ASGS Shell Environment, asgsh."
5-
exit 1;
4+
SCRIPTDIR=$2
5+
if [ -z "$SCRIPTDIR" ]; then
6+
echo "If this script is not run inside of the ASGS Shell Environment, asgsh."
7+
echo "the path of the SCRIPTDIR must be provided as the second argument ..."
8+
exit 1;
9+
fi
610
fi
711

812
# this is just a starter, the above stuff might go into a shell "library" at some
@@ -12,6 +16,7 @@ ITEM=${1}
1216

1317
case "${ITEM}" in
1418
all)
19+
fetch asgs-lint
1520
fetch asgs-mon
1621
fetch configs
1722
fetch cera
@@ -21,17 +26,30 @@ case "${ITEM}" in
2126
# ...
2227
fetch adcirc-testsuite
2328
;;
29+
asgs-lint)
30+
pushd $SCRIPTDIR
31+
mkdir $SCRIPTDIR/git 2> /dev/null
32+
pushd $SCRIPTDIR/git > /dev/null 2>&1
33+
if [ -d ./asgs-lint ]; then
34+
cd ./asgs-lint > /dev/null 2>&1
35+
git pull origin master
36+
else
37+
git clone git@github.com:StormSurgeLive/asgs-lint.git $SCRIPTDIR/git/asgs-lint
38+
fi
39+
popd > /dev/null 2>&1
40+
# force this always
41+
ln -f -s $SCRIPTDIR/git/asgs-lint/bin/asgs-lint $SCRIPTDIR/bin/asgs-lint
42+
;;
2443
asgs-mon)
25-
build jq # helps parse JSON
44+
build jq # helps parse JSON
2645
mkdir $SCRIPTDIR/git 2> /dev/null
2746
pushd $SCRIPTDIR/git > /dev/null 2>&1
2847
if [ -d ./asgs-mon ]; then
2948
cd ./asgs-mon > /dev/null 2>&1
3049
git pull origin master
31-
popd > /dev/null 2>&1
32-
exit
50+
else
51+
git clone git@github.com:StormSurgeLive/asgs-mon.git $SCRIPTDIR/git/asgs-mon
3352
fi
34-
git clone git@github.com:StormSurgeLive/asgs-mon.git $SCRIPTDIR/git/asgs-mon
3553
popd > /dev/null 2>&1
3654
;;
3755
configs)
@@ -40,10 +58,9 @@ case "${ITEM}" in
4058
if [ -d ./asgs-configs ]; then
4159
cd ./asgs-configs > /dev/null 2>&1
4260
git pull origin master
43-
popd > /dev/null 2>&1
44-
exit
61+
else
62+
git clone git@github.com:StormSurgeLive/asgs-configs.git $SCRIPTDIR/git/asgs-configs
4563
fi
46-
git clone git@github.com:StormSurgeLive/asgs-configs.git $SCRIPTDIR/git/asgs-configs
4764
popd > /dev/null 2>&1
4865
;;
4966
docs)
@@ -52,10 +69,9 @@ case "${ITEM}" in
5269
if [ -d ./asgs.wiki ]; then
5370
cd ./asgs.wiki > /dev/null 2>&1
5471
git pull origin master
55-
popd > /dev/null 2>&1
56-
exit
72+
else
73+
git clone git@github.com:StormSurgeLive/asgs.wiki.git $SCRIPTDIR/git/asgs.wiki
5774
fi
58-
git clone git@github.com:StormSurgeLive/asgs.wiki.git $SCRIPTDIR/git/asgs.wiki
5975
popd > /dev/null 2>&1
6076
;;
6177
cera)
@@ -85,10 +101,9 @@ case "${ITEM}" in
85101
if [ -d ./ourPerl ]; then
86102
cd ./ourPerl > /dev/null 2>&1
87103
git pull origin master
88-
popd > /dev/null 2>&1
89-
exit
104+
else
105+
git clone git@github.com:StormSurgeLive/ourPerl.git $SCRIPTDIR/git/ourPerl
90106
fi
91-
git clone git@github.com:StormSurgeLive/ourPerl.git $SCRIPTDIR/git/ourPerl
92107
popd > /dev/null 2>&1
93108
;;
94109
storm-archive)
@@ -97,10 +112,9 @@ case "${ITEM}" in
97112
if [ -d ./storm-archive ]; then
98113
cd ./storm-archive > /dev/null 2>&1
99114
git pull origin master
100-
popd > /dev/null 2>&1
101-
exit
115+
else
116+
git clone git@github.com:StormSurgeLive/storm-archive.git $SCRIPTDIR/git/storm-archive
102117
fi
103-
git clone git@github.com:StormSurgeLive/storm-archive.git $SCRIPTDIR/git/storm-archive
104118
popd > /dev/null 2>&1
105119
;;
106120
adcirc-testsuite)
@@ -109,10 +123,9 @@ case "${ITEM}" in
109123
if [ -d ./adcirc-testsuite ]; then
110124
cd ./adcirc-testsuite > /dev/null 2>&1
111125
git pull origin master
112-
popd > /dev/null 2>&1
113-
exit
126+
else
127+
git clone git@github.com:adcirc/adcirc-testsuite.git $SCRIPTDIR/git/adcirc-testsuite
114128
fi
115-
git clone git@github.com:adcirc/adcirc-testsuite.git $SCRIPTDIR/git/adcirc-testsuite
116129
popd > /dev/null 2>&1
117130
;;
118131
*)
@@ -123,13 +136,14 @@ case "${ITEM}" in
123136
Rerunning the command will update the repo if possible.
124137
125138
Supported:
126-
* adcirc-testsuite - git clones ADCIRC's test-suite (public)
127-
* asgs-mon - git clones ASGS' monitor (public)
128-
* cera - git clones CERA local-asgs-assets (private)
129-
* configs - git clones ASGS asgs-config (public)
130-
* docs - git clones ASGS asgs.wiki (public)
131-
* ourperl - git clones ASGS fork of Nate's ourPerl (public)
132-
* storm-archive - git clones ASGS storm-archive (public)
139+
* adcirc-testsuite - git clones ADCIRC's test-suite (public)
140+
* asgs-lint - git clones ASGS' configuration linter (public)
141+
* asgs-mon - git clones ASGS' monitor (public)
142+
* cera - git clones CERA local-asgs-assets (private)
143+
* configs - git clones ASGS asgs-config (public)
144+
* docs - git clones ASGS asgs.wiki (public)
145+
* ourperl - git clones ASGS fork of Nate Dill's "ourPerl" (public)
146+
* storm-archive - git clones ASGS storm-archive (public)
133147
-- ---
134148
* all - attempts all of the above
135149

cloud/general/README.asgsh

+4-8
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,8 @@ The following interaction is an example interaction:
131131
ADCIRC Environment
132132
~~~~~~~~~~~~~~~~~~
133133

134-
ADCIRC may be optionally built via asgs-shell.pl using the --build-adcirc
135-
command, along with others that are used to specify the git branch, tag,
136-
or commit SHA. But the shell provides access to the underlying script since
137-
it is not the purpose of asgs-brew.pl to be a tool for building ADCIRC.
138-
139134
The asgsh shell provides support for managing different versions of ADCIRC;
140-
for example, if --build-adcirc is used with asgs-brew.pl and no other defaults
141-
are changed, the resulting variables specified inside of the ASGS profile are:
135+
the supported variables specified inside of the ASGS profile are:
142136

143137
1. the named ASGS profile (e.g., 'default') will include the following exported
144138
environmental variables:
@@ -153,7 +147,9 @@ environmental variables:
153147
ADCIRC_MAKE_CMD='make -j 1 adcirc padcirc adcswan padcswan adcprep hstime aswip SWAN=enable compiler=intel NETCDF=enable NETCDF4=enable NETCDF4_COMPRESSION=enable NETCDFHOME=/home/$USER/opt/default MACHINENAME=queenbee'
154148

155149
Note: It appears GitHub is not supporting the "https" git urls, so ADCIRC_GIT_URL
156-
(above) is effectively fixed to "git@github.com:adcirc" when using github URLs.
150+
(above) is effectively fixed to "git@github.com:adcirc" when using github URLs. Any
151+
of these variables can be updated via the "info.sh" file in each supported patch
152+
under, $SCRIPTDIR/patches/ADCIRC/<PATCHSET>/info.sh.
157153

158154
The most important of these is ADCIRCDIR, which is used by asgs_main.sh to locate
159155
the required ADCIRC executables and utilities. The other variables simply record

cloud/general/asgs-brew.pl

+47-38
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ sub _parse_options {
122122
adcirc-git-branch=s
123123
adcirc-git-url=s
124124
adcirc-git-repo=s
125-
build-adcirc
126125
clean
127126
compiler=s
128127
debug
@@ -703,26 +702,34 @@ sub get_steps {
703702

704703
# augment existing %ENV (cumulative)
705704
export_ENV => {
706-
PATH => { value => $_get_all_paths->(), how => q{prepend} }, # prefer ASGS binaries and tools; full list managed above
707-
WORK => { value => $ENV{WORK} // $asgs_home // q{}, how => q{replace} }, # standardize across all platforms
708-
SCRATCH => { value => $ENV{SCRATCH} // $ENV{WORK} // $asgs_home // q{}, how => q{replace} }, # standardize across all platforms
709-
LIBRARY_PATH => { value => qq{$asgs_install_path/lib}, how => q{prepend} }, # for use by linkers
710-
LD_LIBRARY_PATH => { value => qq{$asgs_install_path/lib}, how => q{prepend} }, # for use by linkers
711-
LD_RUN_PATH => { value => qq{$asgs_install_path/lib}, how => q{prepend} }, # for use by binaries
712-
LD_INCLUDE_PATH => { value => qq{$asgs_install_path/include}, how => q{prepend} }, # for use by compilers
713-
SCRIPTDIR => { value => qq{$scriptdir}, how => q{replace} }, # base ASGS dir, used by asgs_main.sh
714-
PERL5LIB => { value => qq{$scriptdir/PERL:$scriptdir/git/ourPerl}, how => q{append} }, # place for distributed Perl libraries
715-
ADCIRC_META_DIR => { value => qq{$asgs_home/.adcirc-meta}, how => q{replace} }, # where to track ADCIRC builds (always)
716-
ASGS_META_DIR => { value => qq{$asgs_home/profiles}, how => q{replace} }, # where to track ASGS profiles (always)
717-
ASGS_BREW_FLAGS => { value => qq{$brewflags}, how => q{replace} }, # make brew flags available for later use
718-
ASGS_HOME => { value => qq{$asgs_home}, how => q{replace} }, # used in preference of $HOME in most cases
719-
ASGS_TMPDIR => { value => qq{$asgs_tmpdir}, how => q{replace} }, # used in preference of $TMPDIR in most cases
720-
ASGS_MACHINE_NAME => { value => qq{$asgs_machine_name}, how => q{replace} }, # machine referred to as in platforms.sh & cmplrflags.mk
721-
ASGS_COMPILER => { value => qq{$asgs_compiler}, how => q{replace} }, # compiler family designated during asgs-brew.pl build
722-
ASGS_INSTALL_PATH => { value => qq{$asgs_install_path}, how => q{replace} }, # where asgs-brew.pl installs supporting bins & libs
723-
ASGS_MAKEJOBS => { value => qq{$makejobs}, how => q{replace} }, # passed to make commands where Makefile supports
724-
ASGS_MESH_DEFAULTS => { value => qq{$scriptdir/config/mesh_defaults.sh}, how => q{replace} }, # list of supported meshes
725-
ASGS_PLATFORMS => { value => qq{$scriptdir/platforms.sh}, how => q{replace} }, # list of supported platforms
705+
PATH => { value => $_get_all_paths->(), how => q{prepend} }, # prefer ASGS binaries and tools; full list managed above
706+
WORK => { value => $ENV{WORK} // $asgs_home // q{}, how => q{replace} }, # standardize across all platforms
707+
SCRATCH => { value => $ENV{SCRATCH} // $ENV{WORK} // $asgs_home // q{}, how => q{replace} }, # standardize across all platforms
708+
LIBRARY_PATH => { value => qq{$asgs_install_path/lib}, how => q{prepend} }, # for use by linkers
709+
LD_LIBRARY_PATH => { value => qq{$asgs_install_path/lib}, how => q{prepend} }, # for use by linkers
710+
LD_RUN_PATH => { value => qq{$asgs_install_path/lib}, how => q{prepend} }, # for use by binaries
711+
LD_INCLUDE_PATH => { value => qq{$asgs_install_path/include}, how => q{prepend} }, # for use by compilers
712+
SCRIPTDIR => { value => qq{$scriptdir}, how => q{replace} }, # base ASGS dir, used by asgs_main.sh
713+
PERL5LIB => { value => qq{$scriptdir/PERL:$scriptdir/git/ourPerl}, how => q{append} }, # place for distributed Perl libraries
714+
ADCIRC_META_DIR => { value => qq{$asgs_home/.adcirc-meta}, how => q{replace} }, # where to track ADCIRC builds (always)
715+
ADCIRC_GIT_BRANCH => { value => qq{$adcirc_git_branch}, how => q{replace} },
716+
ADCIRC_GIT_URL => { value => qq{$adcirc_git_url}, how => q{replace} },
717+
ADCIRC_GIT_REPO => { value => qq{$adcirc_git_repo}, how => q{replace} },
718+
ADCIRC_COMPILER => { value => qq{$asgs_compiler}, how => q{replace} },
719+
ADCIRCBASE => { value => ( not $opts_ref->{'build-adcirc'} ) ? undef : qq{$adcircdir-$adcirc_git_branch}, how => q{replace} },
720+
ADCIRCDIR => { value => ( not $opts_ref->{'build-adcirc'} ) ? undef : qq{$adcircdir-$adcirc_git_branch/work}, how => q{replace} },
721+
SWANDIR => { value => ( not $opts_ref->{'build-adcirc'} ) ? undef : qq{$adcircdir-$adcirc_git_branch/swan}, how => q{replace} },
722+
ADCIRC_PROFILE_NAME => { value => ( not $opts_ref->{'build-adcirc'} ) ? undef : qq{$adcirc_git_branch-$asgs_compiler}, how => q{replace} },
723+
ASGS_META_DIR => { value => qq{$asgs_home/profiles}, how => q{replace} }, # where to track ASGS profiles (always)
724+
ASGS_BREW_FLAGS => { value => qq{$brewflags}, how => q{replace} }, # make brew flags available for later use
725+
ASGS_HOME => { value => qq{$asgs_home}, how => q{replace} }, # used in preference of $HOME in most cases
726+
ASGS_TMPDIR => { value => qq{$asgs_tmpdir}, how => q{replace} }, # used in preference of $TMPDIR in most cases
727+
ASGS_MACHINE_NAME => { value => qq{$asgs_machine_name}, how => q{replace} }, # machine referred to as in platforms.sh & cmplrflags.mk
728+
ASGS_COMPILER => { value => qq{$asgs_compiler}, how => q{replace} }, # compiler family designated during asgs-brew.pl build
729+
ASGS_INSTALL_PATH => { value => qq{$asgs_install_path}, how => q{replace} }, # where asgs-brew.pl installs supporting bins & libs
730+
ASGS_MAKEJOBS => { value => qq{$makejobs}, how => q{replace} }, # passed to make commands where Makefile supports
731+
ASGS_MESH_DEFAULTS => { value => qq{$scriptdir/config/mesh_defaults.sh}, how => q{replace} }, # list of supported meshes
732+
ASGS_PLATFORMS => { value => qq{$scriptdir/platforms.sh}, how => q{replace} }, # list of supported platforms
726733
},
727734
},
728735
{
@@ -1097,27 +1104,29 @@ sub get_steps {
10971104
},
10981105
},
10991106
{
1100-
key => q{adcirc},
1101-
name => q{Build ADCIRC and SWAN},
1102-
description => q{Builds ADCIRC and SWAN if $HOME/adcirc-cg exists.},
1107+
key => q{asgs-lint},
1108+
name => q{Step for installing asgs-lint},
1109+
description => q{Install asgs-lint, linter for ASGS configuration files},
11031110
pwd => qq{$scriptdir},
1111+
command => qq{bash ./bin/fetch asgs-lint $scriptdir},
1112+
clean => sub {
1113+
local $?;
1114+
system(qq{rm -rvf bin/asgs-lint git/asgs-lint});
11041115

1105-
# expose ENV on if --build-adcirc is passed as an option
1106-
export_ENV => {
1116+
# look for zero exit code on success
1117+
my $exit_code = ( $? >> 8 );
1118+
return ( defined $exit_code and $exit_code == 0 ) ? 1 : 0;
1119+
},
1120+
skip_if => sub { undef }, # if exists, bin/fetch will update the repo
1121+
precondition_check => sub { 1 },
1122+
postcondition_check => sub {
1123+
local $?;
1124+
system(qq{readlink -f bin/asgs-lint > /dev/null 2>&1});
11071125

1108-
# always expose, always set even if not building ADCIRC
1109-
ADCIRC_GIT_BRANCH => { value => qq{$adcirc_git_branch}, how => q{replace} },
1110-
ADCIRC_GIT_URL => { value => qq{$adcirc_git_url}, how => q{replace} },
1111-
ADCIRC_GIT_REPO => { value => qq{$adcirc_git_repo}, how => q{replace} },
1112-
ADCIRC_COMPILER => { value => qq{$asgs_compiler}, how => q{replace} },
1113-
ADCIRCBASE => { value => ( not $opts_ref->{'build-adcirc'} ) ? undef : qq{$adcircdir-$adcirc_git_branch}, how => q{replace} },
1114-
ADCIRCDIR => { value => ( not $opts_ref->{'build-adcirc'} ) ? undef : qq{$adcircdir-$adcirc_git_branch/work}, how => q{replace} },
1115-
SWANDIR => { value => ( not $opts_ref->{'build-adcirc'} ) ? undef : qq{$adcircdir-$adcirc_git_branch/swan}, how => q{replace} },
1116-
ADCIRC_PROFILE_NAME => { value => ( not $opts_ref->{'build-adcirc'} ) ? undef : qq{$adcirc_git_branch-$asgs_compiler}, how => q{replace} },
1126+
# look for zero exit code on success
1127+
my $exit_code = ( $? >> 8 );
1128+
return ( defined $exit_code and $exit_code == 0 ) ? 1 : 0;
11171129
},
1118-
command => qq{bash $scriptdir/bin/init-adcirc.sh -b -N v55.02}, # Note: parameters input via environmental variables
1119-
clean => qq{bash $scriptdir/bin/init-adcirc.sh clean},
1120-
skip_if => sub { ( $opts_ref->{'build-adcirc'} ) ? undef : 1 }, # builds only if --build-adcirc is passed to asgs-brew.pl
11211130
},
11221131
];
11231132
return $steps;

cloud/general/init-ffmpeg.sh

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ COMPILER=${2:-gfortran}
55
JOBS=${3:-1}
66
_ASGS_TMP=${ASGS_TMPDIR:-/tmp/${USER}-asgs}
77

8+
mkdir -p $_ASGS_TMP 2> /dev/null
9+
chmod 700 $_ASGS_TMP
10+
811
if [ "$COMPILER" == "clean" ]; then
912
echo cleaning NASM and ffmpeg libraries and utilities
1013
cd $OPT/bin

cloud/general/init-gnu-units.sh

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ COMPILER=$2
55
JOBS=${3:-1}
66
_ASGS_TMP=${ASGS_TMPDIR:-/tmp/${USER}-asgs}
77

8+
mkdir -p $_ASGS_TMP 2> /dev/null
9+
chmod 700 $_ASGS_TMP
10+
811
if [ "$COMPILER" == "clean" ]; then
912
echo cleaning units
1013
cd $OPT/bin

cloud/general/init-gnuplot-noX11.sh

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ COMPILER=$2
55
JOBS=${3:-1}
66
_ASGS_TMP=${ASGS_TMPDIR:-/tmp/${USER}-asgs}
77

8+
mkdir -p $_ASGS_TMP 2> /dev/null
9+
chmod 700 $_ASGS_TMP
10+
811
if [ "$COMPILER" == "clean" ]; then
912
echo cleaning gnuplot
1013
cd $OPT/bin

cloud/general/init-hdf5.sh

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ HDF5_USE_FILE_LOCKING=FALSE
1010

1111
_ASGS_TMP=${ASGS_TMPDIR:-/tmp/${USER}-asgs}
1212

13+
mkdir -p $_ASGS_TMP 2> /dev/null
14+
chmod 700 $_ASGS_TMP
15+
1316
if [ $2 == "clean" ]; then
1417
echo Cleaning HDF5 libraries and utilities
1518
cd $OPT/bin

cloud/general/init-image-magick.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ OPT=${1:-$ASGS_INSTALL_PATH}
44
JOBS=${2:-$ASGS_MAKEJOBS}
55
_ASGS_TMP=${ASGS_TMPDIR:-/tmp/${USER}-asgs}
66

7+
mkdir -p $_ASGS_TMP 2> /dev/null
8+
chmod 700 $_ASGS_TMP
9+
710
IMAGEMAGICK_VERSION="7.1.0-22"
811

912
if [ "$2" == "clean" ]; then
@@ -67,4 +70,4 @@ if [ "$?" == 0 ]; then
6770
echo cleaning build scripts and downloads
6871
cd $_ASGS_TMP
6972
rm -rfv ${IMAGEMAGICK_VERSION}.tar.gz ImageMagick-$IMAGEMAGICK_VERSION
70-
fi
73+
fi

cloud/general/init-jq.sh

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ JOBS=${3:-1}
66

77
_ASGS_TMP=${ASGS_TMPDIR:-/tmp/${USER}-asgs}
88

9+
mkdir -p $_ASGS_TMP 2> /dev/null
10+
chmod 700 $_ASGS_TMP
11+
912
if [[ "$COMPILER" == "clean" || "$COMPILER" == "rebuild" ]]; then
1013
echo cleaning jq
1114
pushd $OPT > /dev/null 2>&1

cloud/general/init-nco.sh

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ JOBS=${3:-1}
66

77
_ASGS_TMP=${ASGS_TMPDIR:-/tmp/${USER}-asgs}
88

9+
mkdir -p $_ASGS_TMP 2> /dev/null
10+
chmod 700 $_ASGS_TMP
11+
912
if [ "$COMPILER" == "clean" ]; then
1013
echo cleaning nco
1114
cd $OPT/include

cloud/general/init-openmpi.sh

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ JOBS=${3-1}
66

77
_ASGS_TMP=${ASGS_TMPDIR:-/tmp/${USER}-asgs}
88

9+
mkdir -p $_ASGS_TMP 2> /dev/null
10+
chmod 700 $_ASGS_TMP
11+
912
OPENMPI_MAJOR_VERSION=5.0
1013
OPENMPI_MINOR_VERSION=5
1114
OPENMPI_FULL_VERSION=openmpi-${OPENMPI_MAJOR_VERSION}.${OPENMPI_MINOR_VERSION}

cloud/general/init-pigz.sh

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ JOBS=${3:-1}
66

77
_ASGS_TMP=${ASGS_TMPDIR:-/tmp/${USER}-asgs}
88

9+
mkdir -p $_ASGS_TMP 2> /dev/null
10+
chmod 700 $_ASGS_TMP
11+
912
if [[ "$COMPILER" == "clean" || "$COMPILER" == "rebuild" ]]; then
1013
echo cleaning pigz
1114
pushd $OPT > /dev/null 2>&1

0 commit comments

Comments
 (0)