Repository: lucy-clownfish
Updated Branches:
  refs/heads/master b8e4b5e43 -> 19a0f7eb0


Installation script for Windows


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/19a0f7eb
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/19a0f7eb
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/19a0f7eb

Branch: refs/heads/master
Commit: 19a0f7eb0410ebe2d441440bbae80d2fe6766263
Parents: b8e4b5e
Author: Nick Wellnhofer <[email protected]>
Authored: Tue Jun 2 17:02:02 2015 +0200
Committer: Nick Wellnhofer <[email protected]>
Committed: Tue Jun 2 17:02:02 2015 +0200

----------------------------------------------------------------------
 runtime/c/install.bat | 47 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/19a0f7eb/runtime/c/install.bat
----------------------------------------------------------------------
diff --git a/runtime/c/install.bat b/runtime/c/install.bat
new file mode 100644
index 0000000..7afb45b
--- /dev/null
+++ b/runtime/c/install.bat
@@ -0,0 +1,47 @@
+@echo off
+
+rem Licensed to the Apache Software Foundation (ASF) under one or more
+rem contributor license agreements.  See the NOTICE file distributed with
+rem this work for additional information regarding copyright ownership.
+rem The ASF licenses this file to You under the Apache License, Version 2.0
+rem (the "License"); you may not use this file except in compliance with
+rem the License.  You may obtain a copy of the License at
+rem
+rem     http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem Unless required by applicable law or agreed to in writing, software
+rem distributed under the License is distributed on an "AS IS" BASIS,
+rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+rem See the License for the specific language governing permissions and
+rem limitations under the License.
+
+set major_version=0.4
+
+if "%1" == "--prefix" goto opt_prefix
+echo Usage: install.bat --prefix path
+exit /b 1
+
+:opt_prefix
+if not "%~2" == "" goto has_prefix
+echo --prefix requires an argument.
+exit /b 1
+
+:has_prefix
+set prefix=%~2
+
+rem Install libraries.
+mkdir "%prefix%\lib" 2>nul
+copy cfish-%major_version%.dll "%prefix%\lib" >nul
+copy cfish-%major_version%.lib "%prefix%\lib" >nul
+
+rem Install executables.
+mkdir "%prefix%\bin" 2>nul
+copy ..\..\compiler\c\cfc.exe "%prefix%\bin" >nul
+
+rem Install Clownfish header files.
+xcopy /siy ..\core\*.cfh "%prefix%\share\clownfish\include" >nul
+xcopy /siy ..\core\*.cfp "%prefix%\share\clownfish\include" >nul
+
+rem Install man pages.
+xcopy /siy autogen\man "%prefix%" >nul
+

Reply via email to