Revision f5887924

View differences:

build_ul.sh
322 322
fi
323 323
$MAKE clean
324 324
ULPLAYER=$BASE_UL_DIR ULPLAYER_EXTERNAL_LIBS=$EXTERN_DIR LIBEVENT_DIR=$LOCAL_EVENT ML=1 STATIC=1 MONL=$MONL IO=$IO DEBUG= THREADS=$THREADS $MAKE
325

  
326
#check if all is ok
327
echo "============== RESULTS ==================="
328

  
329
cd "$BASE_UL_DIR/chunker_streamer"
330
if [ -f "chunker_streamer" ]; then
331
	echo "chunker_streamer OK"
332
	C_STREAMER_EXE=`ls -la chunker_streamer`
333
	echo "$C_STREAMER_EXE"
334
	#now we want the bare name
335
	C_STREAMER_EXE=`ls chunker_streamer`
336
else
337
	echo "chunker_streamer FAIL"
338
fi
339

  
340
cd "$BASE_UL_DIR/chunker_player"
341
if [ -f "chunker_player" ]; then
342
	echo "chunker_player OK"
343
	C_PLAYER_EXE=`ls -la chunker_player`
344
	echo "$C_PLAYER_EXE"
345
	#now we want the bare name
346
	C_PLAYER_EXE=`ls chunker_player`
347
else
348
	echo "chunker_player FAIL"
349
fi
350

  
351
cd "$BASE_UL_DIR/../OfferStreamer"
352
echo "Check if the http binary is among these offerstreamers:"
353
ls -la offerstreamer* | grep -v ".o$"
354
echo "Your UL-enabled offerstreamer should be..."
355
O_TARGET_EXE=`ls offerstreamer* | grep -v ".o$" | grep $IO`
356
echo "$O_TARGET_EXE"
357
if [ -f "$O_TARGET_EXE" ]; then
358
	echo "...and i found it."
359
else
360
	echo "...but sadly it appears build FAILED!."
361
fi
362

  
363
#packaging for distribution
364
cd "$BASE_UL_DIR/chunker_player"
365
if [ -f "$BASE_UL_DIR/../OfferStreamer/$O_TARGET_EXE" -a -f "$C_PLAYER_EXE" ]; then
366
	echo "============== PACKAGING NAPAPLAYER ==================="
367
	rm -f -r napaplayer
368
	rm -f -r napaplayer.tar.gz
369
	mkdir napaplayer
370
	mkdir napaplayer/icons
371
	cp icons/* napaplayer/icons/
372
	cp channels.conf napaplayer/
373
	cp napalogo*.bmp napaplayer/
374
	cp *.ttf napaplayer/
375
	cp "$C_PLAYER_EXE" napaplayer/
376
	cp "$BASE_UL_DIR/../OfferStreamer/$O_TARGET_EXE" napaplayer/
377
	cd napaplayer/
378
	ln -s "$O_TARGET_EXE" ./offerstreamer
379
	cd ..
380
	tar cvfz napaplayer.tar.gz napaplayer
381
	if [ -s "napaplayer.tar.gz" ]; then
382
		#it has size>0. OK!
383
		echo "Here is your napaplayer tarball. Enjoy!"
384
		ls -la napaplayer.tar.gz
385
	else
386
		echo "Sorry something went wrong during packaging napaplayer."
387
	fi
388
else
389
	echo ""
390
	echo "Not packaging napaplayer since build failed."
391
fi
392

  
393
echo "Finished build UL script"
394

  

Also available in: Unified diff