Skip to content

Commit be4aa44

Browse files
committed
Further fixes to deployment packaging
1 parent 91b7b0e commit be4aa44

File tree

9 files changed

+30
-23
lines changed

9 files changed

+30
-23
lines changed

Build/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ EXAMPLE_DIR = ../Example
189189

190190
# Gather the SDK package contents
191191
do-sdk: do-sdk-deploy javadoc
192-
cp LICENSE.txt $(PKG_DIR)
192+
cp ../LICENSE.md $(PKG_DIR)
193193
mkdir $(PKG_DIR)/Doc
194194
cp $(DOC_FILES:%=$(DOC_DIR)/%) $(PKG_DIR)/Doc
195195
cp -rf $(JAVADOC_DIR) $(PKG_DIR)/Doc/javadoc
@@ -279,7 +279,6 @@ do-core-deploy: do-build db
279279

280280
# Run environments for organization internal use only
281281
RUN_ENVS_PRIVATE = \
282-
run.chipdev \
283282
run.full_production
284283

285284
# Gather the deployment package contents that are strictly internal

Build/Scripts/dbpurge.sh

100644100755
File mode changed.

Build/install

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ if [ $ANSWER != "yes" ]; then
106106
exit
107107
fi
108108

109+
mkdir -p $IDIR
110+
109111
if [ ! -e $ISOURCE ]; then
110112
IARCHIVE=$ISOURCE.tar.gz
111113
if [ -e $IARCHIVE ]; then
@@ -164,14 +166,14 @@ if [ $DO_DB = "yes" ]; then
164166
./dbinit.sh
165167
fi
166168

167-
cd $IRUN
169+
cd ../Run
168170
shopt -s nullglob
169171
for SETUP in run.*/setup; do
170172
cd `dirname $SETUP`
171-
echo "running setup in $pwd"
173+
echo "running setup in $PWD"
172174
./setup
173175
mv setup setup.done
174176
cd ..
175177
done
176178

177-
chmod a+rwx $ITARGET/Run/run.*/control
179+
chmod a+rwx run.*/control

Example/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
built

Example/build/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ CLASS_BUILD_MARKER = $(BUILT_DIR)/classbuildmarker
9090

9191
all: base-build finish
9292

93+
installable:
94+
@echo
95+
9396
javadoc: do-javadoc finish
9497

9598
dist-terse: all
@@ -144,6 +147,6 @@ clean:
144147
$(CLA_DIR)/%.class: $(JAV_DIR)/%.java
145148
touchp $@
146149

147-
.PHONY: all javadoc dist generated finish do-javadoc base-build clean
150+
.PHONY: all javadoc dist generated finish do-javadoc base-build clean installable
148151

149152
-include $(ALL_DEP)

Run/mongosupport/mongodbnotes.txt

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@ of database for containing the persistent state of users, contexts, and items
55
(hence its use as the repository for the metadata that allows these objects to
66
be read into the server's memory).
77

8-
The shell script dbinit.sh (in the Scripts directory) will connect to the local
9-
MongoDB instance, initialize a database named 'elko', and populate it with
10-
the essential configuration data as well as a selection of default user,
8+
The shell script dbinit.sh (in the Build/Scripts directory) will connect to the
9+
local MongoDB instance, initialize a database named 'elko', and populate it
10+
with the essential configuration data as well as a selection of default user,
1111
context, and item objects to get you started. As distributed, this script will
1212
connnect to the standard default MongoDB host and port (localhost, port 27017);
1313
if your MongoDB runs someplace else, you should modify this script accordingly.
1414

15+
The dbinit.sh script is not included directly in the distribution, but gets
16+
built according to instructions in the Build/Makefile via the command 'make
17+
db'. The resulting script will populate the database with objects described by
18+
JSON files found in the various component directories.
19+
20+
---
21+
1522
The file mongohelper.js contains an assortment of useful functions to be used
1623
within the MongoDB client shell to manipulate the database in accordance with
1724
various conventions we use repeatedly. We recommend you define a shell alias:
@@ -20,13 +27,9 @@ various conventions we use repeatedly. We recommend you define a shell alias:
2027

2128
---
2229

23-
mongo.jar (2.4) is unmodified open source software and is provided here for
24-
convenience.
25-
26-
It is strongly suggested that you go to http://mongodb.org to get the latest
27-
Java driver software version and replace this file with it.
28-
29-
It is subject to the terms at http://mongodb.org.
30+
To run with MongoDB, you will need to have some version of the MongoDB Java
31+
"driver" on your class path. These can be obtained at
32+
https://docs.mongodb.com/ecosystem/drivers/java
3033

3134
---
3235

Run/mongosupport/mongohelper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function egetu(uref) {
9090
}
9191

9292
function emod(obj, mtype) {
93-
for each (var mod in obj.mods) {
93+
for (var mod in obj.mods) {
9494
if (mod.type == mtype) {
9595
return mod;
9696
}
@@ -184,7 +184,7 @@ function iholders(iref) {
184184

185185
function idrop(iref) {
186186
var holders = iholders(iref);
187-
for each (var uref in holders) {
187+
for (var uref in holders) {
188188
var user = egetu(uref);
189189
for (var i = 0; i < user.ref$contents.length; ++i) {
190190
if (user.ref$contents[i] == iref) {

ServerCore/build/Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,12 @@ DB_FILES = ../run/db/mongo.jar \
122122

123123
copy-core:
124124
cp $(JAR_FILES) $(TEMP_DIR)
125-
cp License.txt $(TEMP_DIR)
126-
cp ../run/start.* $(TEMP_DIR)
127-
cp ../run/*.example $(TEMP_DIR)
128-
cp ../run/setenvvars $(TEMP_DIR)
125+
#cp ../run/start.* $(TEMP_DIR)
126+
#cp ../run/*.example $(TEMP_DIR)
127+
#cp ../run/setenvvars $(TEMP_DIR)
129128
echo "echo '#Replace this file with your customized version of setlocvars.example'; return 1" >$(TEMP_DIR)/setlocvars
130129
mkdir -p $(TEMP_DIR)/db
131-
cp -r $(DB_FILES) $(TEMP_DIR)/db
130+
#cp -r $(DB_FILES) $(TEMP_DIR)/db
132131

133132
copy-docs:
134133
cp -rf $(JAVADOC_DIR) $(TEMP_DIR)

ServerCore/db/dbinitpost.js

Whitespace-only changes.

0 commit comments

Comments
 (0)