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
448a5bc0
Commit
448a5bc0
authored
8 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
Clean install - erase tmp files when done
Former-commit-id: c57134e397f750c4db0f587fbfce7c996e6beb75
parent
1c4f3567
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
+31
-7
31 additions, 7 deletions
tools/ps_install.sh
with
31 additions
and
7 deletions
tools/ps_install.sh
+
31
−
7
View file @
448a5bc0
...
...
@@ -40,7 +40,9 @@ echo "Type any key to continue"
read
anykey
# in case it's not there yet
mkdir
-p
$INSTALL_DIR
if
[
!
-d
"
$INSTALL_DIR
"
]
;
then
mkdir
-p
$INSTALL_DIR
fi
chmod
+x ./a.stratafied
...
...
@@ -49,20 +51,42 @@ if [ -d "$INSTALL_DIR/${PROG}_analysis" ]; then
rm
-fr
"
$INSTALL_DIR
/
${
PROG
}
_analysis"
fi
# copy the peasoup dir
cp
-r
.
$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
chmod
+x
$INSTALL_DIR
/
$PROG
create_desktop_shortcut
${
PROG
}
${
INSTALL_DIR
}
/
${
PROG
}
# if X11 applications detected, create desktop shortcut
ldd ./a.ncexe.orig |
grep
X11
>
/dev/null 2>&1
if
[
$?
-eq
0
]
;
then
echo
Desktop shortcut succesfully created
in
$DESKTOP_ZEPHYR_DIR
else
echo
Could not create desktop shortcut
in
$DESKTOP_ZEPHYR_DIR
create_desktop_shortcut
${
PROG
}
${
INSTALL_DIR
}
/
${
PROG
}
if
[
$?
-eq
0
]
;
then
echo
X application detected - desktop shortcut succesfully created
in
$DESKTOP_ZEPHYR_DIR
else
echo
Could not create desktop shortcut
in
$DESKTOP_ZEPHYR_DIR
fi
fi
echo
""
echo
================================================================
echo
"Installation complete"
echo
================================================================
# cleanup
#
# note that we are in the archive
#
# save current dir
current_dir
=
$(
pwd
)
# remove files in the current directory
rm
-r
*
# get out of current dir so that we can erase it
cd
/tmp
rmdir
"
${
current_dir
}
"
# remove temporary installer
rm
-f
/tmp/
${
PROG
}
.installer
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