Commit db3a85e 1 parent 5fd9910 commit db3a85e Copy full SHA for db3a85e
File tree 2 files changed +13
-6
lines changed
2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# cspice-sharedlib
4
4
5
- Shell script to build the [ NAIF CSPICE Toolkit] ( https://naif.jpl.nasa.gov/naif/toolkit.html ) with
6
- its shared library (` libcspice.so[.1] ` ), and dynamically link executable instead of the normal
7
- static libraries and static linking of the upstream distribution.
5
+ Shell script to build the [ NAIF CSPICE Toolkit] ( https://naif.jpl.nasa.gov/naif/toolkit.html ) as
6
+ a shared library (` libcspice.so[.1] ` ) and dynamically linked executables instead of the normal
7
+ static libraries and static linking used by the the upstream distribution.
8
8
9
9
Author: Attila Kovacs ` <attila.kovacs[AT]cfa.harvard.edu> `
10
10
Version: 0.9
Original file line number Diff line number Diff line change @@ -43,8 +43,14 @@ cd src
43
43
44
44
for component in * ; do
45
45
if [ -d $component ] ; then
46
- # back up the build script
47
- cp -a $component /mkprodct.csh $component /mkprodct.bak
46
+
47
+ if [ -f $component /mkproduct.bak ] ; then
48
+ # restore original scripts if needed
49
+ cp $component /mkprodct.bak $component /mkprodct.csh
50
+ elif [ -f $component /mkproduct.csh ] ; then
51
+ # back up the original build script
52
+ cp -a $component /mkprodct.csh $component /mkprodct.bak
53
+ fi
48
54
49
55
# Don't used default build for static libs or cookbook examples.
50
56
# We don't package these
@@ -105,10 +111,11 @@ csh makeall.csh
105
111
echo " Restoring original build scripts..."
106
112
for component in * ; do
107
113
if [ -f $component /mkproduct.bak ] ; then
108
- # back up the build script
109
114
mv $component /mkprodct.bak $component /mkprodct.csh
110
115
fi
111
116
done
112
117
118
+ # ----------------------------------------------------------------------------
119
+ # Done.
113
120
echo " All done."
114
121
You can’t perform that action at this time.
0 commit comments