Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
35b55615
Commit
35b55615
authored
May 12, 2016
by
Rashad Kanavath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PKG: XDK does not install startup scripts
parent
6aecd6c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
18 deletions
+25
-18
SuperBuild/Packaging/Files/linux_pkgsetup.in
SuperBuild/Packaging/Files/linux_pkgsetup.in
+25
-18
No files found.
SuperBuild/Packaging/Files/linux_pkgsetup.in
View file @
35b55615
#!/
bin/
sh
#!/
usr/bin/env ba
sh
cd
`
dirname
$0
`
...
...
@@ -6,6 +6,10 @@ cd `dirname $0`
# Avoid any pre-mature optimization on variable names here.
OUT_DIR
=
`
pwd
`
CAT
=
`
which
cat
`
RM
=
`
which
rm
`
chmod
=
`
which
chmod
`
WHICH_ENV
=
`
which
env
`
PATCH_ELF_EXE
=
$OUT_DIR
/tools/patchelf
...
...
@@ -22,18 +26,26 @@ for bin_file in $BINARY_FILES; do
fi
done
cat
>
$OUT_DIR
/monteverdi.sh
<<
EOF
#!/bin/sh
i_am_xdk
=
@IS_XDK@
if
[
"
$i_am_xdk
"
=
true
]
;
then
sed
-i
"s,@DEPENDENCIES_INSTALL_DIR@,
$OUT_DIR
,g"
lib/cmake/ITK-@ITK_VERSION_STRING@/Modules/ITKZLIB.cmake
sed
-i
"s,@DEPENDENCIES_INSTALL_DIR@,
$OUT_DIR
,g"
lib/cmake/ITK-@ITK_VERSION_STRING@/ITKConfig.cmake
sed
-i
"s,@DEPENDENCIES_INSTALL_DIR@,
$OUT_DIR
,g"
lib/cmake/ITK-@ITK_VERSION_STRING@/ITKTargets-release.cmake
else
$CAT
>
$OUT_DIR
/monteverdi.sh
<<
EOF
#!
$WHICH_ENV
bash
export LC_NUMERIC=C
export OTB_APPLICATION_PATH=
$OUT_DIR
/lib/otb/applications
export GDAL_DATA=
$OUT_DIR
/share/gdal
export GEOTIFF_CSV=
$OUT_DIR
/share/epsg_csv
$OUT_DIR
/bin/monteverdi "
\$
@"
EOF
chmod
+x
$OUT_DIR
/monteverdi.sh
cat
>
$OUT_DIR
/mapla.sh
<<
EOF
#!/bin/sh
$CHMOD
+x
$OUT_DIR
/monteverdi.sh
$CAT
>
$OUT_DIR
/mapla.sh
<<
EOF
#!
$WHICH_ENV
bash
export LC_NUMERIC=C
export OTB_APPLICATION_PATH=
$OUT_DIR
/lib/otb/applications
export GDAL_DATA=
$OUT_DIR
/share/gdal
...
...
@@ -41,10 +53,10 @@ export GEOTIFF_CSV=$OUT_DIR/share/epsg_csv
$OUT_DIR
/bin/mapla "
\$
@"
EOF
chmod
+x
$OUT_DIR
/mapla.sh
$CHMOD
+x
$OUT_DIR
/mapla.sh
cat
>
$OUT_DIR
/otbenv.profile
<<
EOF
#!
/bin/
sh
$CAT
>
$OUT_DIR
/otbenv.profile
<<
EOF
#!
$WHICH_ENV
ba
sh
PATH=
\$
PATH:
$OUT_DIR
/bin
GDAL_DATA=
$OUT_DIR
/share/gdal
GEOTIFF_CSV=
$OUT_DIR
/share/espg_csv
...
...
@@ -55,18 +67,13 @@ export GDAL_DATA
export GEOTIFF_CSV
EOF
#
echo "Creating symbolic links..."
echo
"Creating symbolic links..."
.
./make_symlinks
if
[
-f
lib/cmake/ITK-@ITK_VERSION_STRING@/ITKConfig.cmake
]
;
then
rm
-fr
$OUT_DIR
/bin/
*
sed
-i
"s,@DEPENDENCIES_INSTALL_DIR@,
$OUT_DIR
,g"
lib/cmake/ITK-@ITK_VERSION_STRING@/Modules/ITKZLIB.cmake
sed
-i
"s,@DEPENDENCIES_INSTALL_DIR@,
$OUT_DIR
,g"
lib/cmake/ITK-@ITK_VERSION_STRING@/ITKConfig.cmake
sed
-i
"s,@DEPENDENCIES_INSTALL_DIR@,
$OUT_DIR
,g"
lib/cmake/ITK-@ITK_VERSION_STRING@/ITKTargets-release.cmake
fi
rm
-fr
$OUT_DIR
/tools
$RM
-fr
$OUT_DIR
/tools
rm
-f
$OUT_DIR
/pkgsetup
$RM
-f
$OUT_DIR
/pkgsetup
rm
-f
$OUT_DIR
/make_symlinks
$RM
-f
$OUT_DIR
/make_symlinks
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment