Repository: lucy-clownfish
Updated Branches:
  refs/heads/0.4 fcffe7f10 -> 85ceffbe7


Backport Windows install script for C build


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

Branch: refs/heads/0.4
Commit: 85ceffbe7c12b4e26afd4c6f40473b621cc1351c
Parents: fcffe7f
Author: Nick Wellnhofer <[email protected]>
Authored: Fri Jul 24 21:10:20 2015 +0200
Committer: Nick Wellnhofer <[email protected]>
Committed: Fri Jul 24 21:10:20 2015 +0200

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


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/85ceffbe/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