Skip to content

Instantly share code, notes, and snippets.

@p--q

p--q/make_all.sh Secret

Last active April 19, 2017 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p--q/7f7324d000e16292cc10 to your computer and use it in GitHub Desktop.
Save p--q/7f7324d000e16292cc10 to your computer and use it in GitHub Desktop.
LibreOffice5(15)Javaの例をデバッグ情報を追加してビルドする
#!/bin/bash
#第一引数をmakeの引数にしている。
#setsdkenv_unixが実行されたシェルで実行されているのかをチェック。
if [ -z "${OO_SDK_HOME}" ]
then
echo setsdkenv_unixが実行されたTerminalで実行してください。
exit
fi
#出力先フォルダ
OUTPUT_DIR=${OO_SDK_OUT}
#SDKの例のフォルダ
EXP_DIR=${OO_SDK_HOME}/examples
#SDKの例のフォルダに移動。
cd ${EXP_DIR}
#ログファイル出力先フォルダフルパスを作成。
LOG_DIR=${OUTPUT_DIR}/log/$(date +%Y%m%d_%H%M%S)
#ログファイル出力先フォルダを作成。
mkdir -p ${LOG_DIR}
while read LINE
do
#Makefileのあるフォルダ。
CUR_DIR=${LINE%/Makefile*}
#ログファイル名の作成。
LOG_FILE=${CUR_DIR#./}
#パス区切りを_に置換。dashではエラーになる。
LOG_FILE=${LOG_FILE//"/"/"_"}
#Makefileのあるフォルダに移動。
cd $CUR_DIR
make $1 DEBUG=yes 2>&1 | tee ${LOG_DIR}/${LOG_FILE}.log
#SDKの例のフォルダに戻る。
cd ${EXP_DIR}
done << EOS
./cpp/complextoolbarcontrols/Makefile #complextoolbarcontrols
./cpp/remoteclient/Makefile #Remote client
./cpp/counter/Makefile #Counter
./cpp/DocumentLoader/Makefile #DocumentLoader
./OLE/activex/Makefile #ActiveX Control
./python/toolpanel/Makefile #ToolPanelPoc
./CLI/CSharp/Spreadsheet/Makefile #Spreadsheet Example
./CLI/VB.NET/WriterDemo/Makefile #WriterDemo
./DevelopersGuide/UCB/Makefile #ChildrenRetriever,DataStreamComposer,DataStreamRetriever,Helper,MyActiveDataSink,PropertiesComposer,PropertiesRetriever,ResourceCreator,ResourceManager,ResourceRemover
./DevelopersGuide/FirstSteps/Makefile #FirstUnoContact,FirstLoadComponent,HelloTextTableShape
./DevelopersGuide/Spreadsheet/Makefile #ExampleAddIn,ExampleDataPilotSource,GeneralTableSample,SpreadsheetDocHelper,SpreadsheetSample,ViewSample
./DevelopersGuide/Text/Makefile #TextDocuments
./DevelopersGuide/OfficeDev/PathSettings/Makefile #PathsettingsTest
./DevelopersGuide/OfficeDev/Linguistic/Makefile #LinguisticExamples,OneInstanceFactory,PropChgHelper,PropChgHelper_Hyph,PropChgHelper_Spell,SampleHyphenator,SampleSpellChecker,SampleThesaurus,XHyphenatedWord_impl,XMeaning_impl,XPossibleHyphens_impl,XSpellAlternatives_impl
./DevelopersGuide/OfficeDev/Makefile #OfficeConnect,ContextMenuInterceptor,MenuElement,Number_Formats
./DevelopersGuide/OfficeDev/PathSubstitution/Makefile #PathSubstitutionTest
./DevelopersGuide/OfficeDev/DisableCommands/Makefile #DisableCommandsTest
./DevelopersGuide/OfficeDev/Clipboard/Makefile #Clipboard,ClipboardListener,ClipboardOwner,TextTransferable
./DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/Makefile #AsciiReplaceFilter,FilterOptions,TypeDetection.xcu
./DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_java/Makefile #FlatXml,FlatXmlFilter_java.xcu
./DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/Makefile #filterdetect.cxx,filterdetect.hxx,fdcomp.cxx,FlatXmlTypeDetection.xcu
./DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/Makefile #FlatXml.cxx,FlatXmlFilter_cpp.xcu
./DevelopersGuide/OfficeDev/TerminationTest/Makefile #TerminationTest,TerminateListener
./DevelopersGuide/Components/SimpleLicense/Makefile #description.xml
./DevelopersGuide/Components/Addons/JobsAddon/Makefile #AsyncJob,Jobs.xcu,Addons.xcu
./DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/Makefile #addon.cxx,addon.hxx,component.cxx,ProtocolHandler.xcu,Addons.xcu
./DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/Makefile #ProtocolHandlerAddon,ProtocolHandler.xcu,Addons.xcu
./DevelopersGuide/Components/CppComponent/Makefile #TestCppComponent.cxx,service1_impl.cxx,service2_impl.cxx
./DevelopersGuide/Components/JavaComponent/Makefile #TestJavaComponent,TestComponentA,TestComponentB,TestServiceProvider
./DevelopersGuide/Components/Thumbs/Makefile #ImageShrink,Thumbs
./DevelopersGuide/Components/dialogcomponent/Makefile #DialogComponent.java,XTestDialogHandler.idl,TestDialogHandler.idl,DialogComponent.odt
./DevelopersGuide/Drawing/Makefile #ChangeOrderDemo,ControlAndSelectDemo,CustomShowDemo,DrawViewDemo,DrawingDemo, FillAndLineStyleDemo,GluePointDemo,GraphicExportDemo,Helper,LayerDemo,ObjectTransformationDemo,Organigram,PageHelper,PresentationDemo,ShapeHelper,StyleDemo,TextDemo
./DevelopersGuide/Extensions/DialogWithHelp/Makefile
./DevelopersGuide/Config/Makefile #ConfigExamples
./DevelopersGuide/GUI/Makefile #DialogDocument,MessageBox,UnoDialogSample,UnoDialogSample2,UnoMenu,UnoMenu2,ImageControlSample2
./DevelopersGuide/ScriptingFramework/ScriptSelector/Makefile #ScriptSelector
./DevelopersGuide/ScriptingFramework/SayHello/Makefile #SayHello
./DevelopersGuide/Database/Makefile #CodeSamples,OpenQuery,RowSet,RowSetEventListener,Sales,SalesMan,sdbcx
./DevelopersGuide/Database/DriverSkeleton/Makefile #OSubComponent.hxx,OTypeInfo.hxx,SConnection.hxx,SConnection.cxx,SDatabaseMetaData.hxx,SDatabaseMetaData.cxx,SDriver.hxx,SDriver.cxx,SPreparedStatement.hxx,SPreparedStatement.cxx,SResultSet.hxx,SResultSet.cxx,SResultSetMetaData.hxx,SResultSetMetaData.cxx,SServices.cxx,SStatement.hxx,SStatement.cxx,propertyids.hxx,propertyids.cxx
./DevelopersGuide/OfficeBean/Makefile #OOoBeanViewer
./DevelopersGuide/BasicAndDialogs/CreatingDialogs/Makefile #SampleDialog
./DevelopersGuide/BasicAndDialogs/ToolkitControls/Makefile #ToolkitControls
./DevelopersGuide/Charts/Makefile #CalcHelper,ChartHelper,ChartInCalc,ChartInDraw,ChartInWriter,Helper,JavaSampleChartAddIn,ListenAtCalcRangeInDraw,SelectionChangeListener
./DevelopersGuide/Forms/Makefile #BooleanValidator,ButtonOperator,ComponentTreeTraversal,ControlLock, ControlValidation,ControlValidator, DataAwareness,DateValidator,DocumentBasedExample,DocumentHelper,DocumentType,DocumentViewHelper,FLTools,FormLayer,GridFieldValidator,InteractionRequest,KeyGenerator,ListSelectionValidator,NumericValidator,SingleControlValidation,SpreadsheetDocument,SpreadsheetValueBinding,SpreadsheetView,TableCellTextBinding,TextValidator,TimeValidator,UNO,ValueBinding,WaitForInput
./DevelopersGuide/ProfUNO/CppBinding/Makefile #office_connect.cxx,string_samples.cxx
./DevelopersGuide/ProfUNO/SimpleBootstrap_cpp/Makefile #SimpleBootstrap_cpp.cxx
./DevelopersGuide/ProfUNO/SimpleBootstrap_java/Makefile #SimpleBootstrap_java.java,manifest.mf
./DevelopersGuide/ProfUNO/Lifetime/Makefile #MyUnoObject,object_lifetime.cxx
./DevelopersGuide/ProfUNO/InterprocessConn/Makefile #ConnectionAwareClient,UrlResolver
./java/Spreadsheet/Makefile #CalcAddins,ChartTypeChange,EuroAdaption,SCalc
./java/Text/Makefile #BookmarkInsertion,HardFormatting,SWriter,StyleCreation,StyleInitialization,TextDocumentStructure,TextReplace,GraphicsInserter,WriterSelector
./java/MinimalComponent/Makefile #MinimalComponent
./java/EmbedDocument/EmbeddedObject/Makefile #EmbeddedObject
./java/Drawing/Makefile #SDraw
./java/PropertySet/Makefile #PropTest
./java/DocumentHandling/Makefile #DocumentConverter,DocumentLoader,DocumentPrinter,DocumentSaver
./java/ToDo/Makefile #ToDo
./java/Inspector/Makefile #Object Inspector
EOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment