Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
b26f7ace
Commit
b26f7ace
authored
10 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
better sanity checks in case tries to install 2x
Former-commit-id: e62a21e7a5bee89f321ae6073d5c6636400f7c60
parent
6682e0ef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/ps_install.sh
+11
-2
11 additions, 2 deletions
tools/ps_install.sh
with
11 additions
and
2 deletions
tools/ps_install.sh
+
11
−
2
View file @
b26f7ace
...
...
@@ -6,6 +6,14 @@ PROG=$(basename $0 .install.sh)
# Default installation directory
INSTALL_DIR
=
/tmp/protected/bin
if
[
!
-d
analysis_dir
]
;
then
echo
"Looks like you've already installed
${
PROG
}
"
echo
echo
"Type any key to continue"
read
anykey
exit
1
fi
echo
"Installing protected version of
$PROG
"
echo
"Installation directory:
$INSTALL_DIR
"
echo
"Fully qualified path:
$INSTALL_DIR
/
$PROG
"
...
...
@@ -14,18 +22,19 @@ echo
echo
"Type any key to continue"
read
anykey
# in case it's not there yet
mkdir
-p
$INSTALL_DIR
chmod
+x analysis_dir/a.stratafied
# wipe out any old installs
if
[
-d
"
$INSTALL_DIR
/
${
PROG
}
_analysis"
]
;
then
rm
-fr
"
$INSTALL_DIR
/
${
PROG
}
_analysis"
rm
-fr
"
$INSTALL_DIR
/
${
PROG
}
_analysis"
fi
#cp -r analysis_dir $INSTALL_DIR/${PROG}_analysis
mv
analysis_dir
$INSTALL_DIR
/
${
PROG
}
_analysis
echo
"
$INSTALL_DIR
/
${
PROG
}
_analysis/ps_run.sh
$INSTALL_DIR
/
${
PROG
}
_analysis
\"\$
0
\"
\"\$
@
\"
"
>
$INSTALL_DIR
/
$PROG
echo
"
$INSTALL_DIR
/
${
PROG
}
_analysis/ps_run.sh
$INSTALL_DIR
/
${
PROG
}
_analysis
\"\$
0
\"
\"\$
@
\"
"
>
$INSTALL_DIR
/
$PROG
chmod
+x
$INSTALL_DIR
/
$PROG
echo
"Installation complete"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment