-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
213 changed files
with
9,805 additions
and
9,745 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
SOLUTION_FILE=src/1Script_Mono.sln | ||
PLATFORM="Any CPU" | ||
CONFIGURATION=Release | ||
SOURCEBINDIR=src/oscript/bin/${CONFIGURATION} | ||
BIN_OUTPUTDIR=dist/bin | ||
LIB_OUTPUTDIR=dist/lib | ||
OSCRIPTEXE=${BIN_OUTPUTDIR}/oscript.exe | ||
OPMOS=${LIB_OUTPUTDIR}/opm/opm.os | ||
OPM="${OSCRIPTEXE} ${OPMOS}" | ||
PREFIX=/usr | ||
|
||
all: dist | ||
|
||
dist: ${OSCRIPTEXE} lib | ||
|
||
lib: ${OSCRIPTEXE} | ||
test -d ${LIB_OUTPUTDIR} || mkdir -p ${LIB_OUTPUTDIR} | ||
cp -r oscript-library/src/* ${LIB_OUTPUTDIR} | ||
|
||
NUGET: | ||
nuget restore ${SOLUTION_FILE} | ||
|
||
${OSCRIPTEXE}: NUGET | ||
msbuild /p:Platform=${PLATFORM} /p:Configuration=${CONFIGURATION} ${SOLUTION_FILE} | ||
test -d ${BIN_OUTPUTDIR} || mkdir -p ${BIN_OUTPUTDIR} | ||
cp ${SOURCEBINDIR}/*.dll ${BIN_OUTPUTDIR} | ||
cp ${SOURCEBINDIR}/*.exe ${BIN_OUTPUTDIR} | ||
cp ${SOURCEBINDIR}/*.cfg ${BIN_OUTPUTDIR} | ||
|
||
clean: | ||
rm -rf ${BIN_OUTPUTDIR} | ||
rm -rf ${LIB_OUTPUTDIR} | ||
|
||
${OPMOS}: | ||
|
||
install: install_bin install_lib | ||
|
||
install_bin: | ||
mkdir -p ${PREFIX}/share/oscript/bin | ||
cp ${BIN_OUTPUTDIR}/* ${PREFIX}/share/oscript/bin | ||
cp install/builders/deb/oscript ${PREFIX}/bin/oscript | ||
cp install/builders/deb/oscript-cgi ${PREFIX}/bin/oscript-cgi | ||
|
||
install_lib: | ||
mkdir -p ${PREFIX}/share/oscript/lib | ||
cp -r ${LIB_OUTPUTDIR}/* ${PREFIX}/share/oscript/lib | ||
cp install/builders/deb/oscript-opm ${PREFIX}/bin/oscript-opm | ||
ln -s ${PREFIX}/bin/oscript-opm ${PREFIX}/bin/opm | ||
|
||
uninstall: uninstall_lib uninstall_bin | ||
|
||
uninstall_bin: | ||
rm -rf ${PREFIX}/share/oscript/bin | ||
rm ${PREFIX}/bin/oscript | ||
rm ${PREFIX}/bin/oscript-cgi | ||
|
||
uninstall_lib: | ||
rm ${PREFIX}/bin/opm | ||
rm ${PREFIX}/bin/oscript-opm | ||
rm -rf ${PREFIX}/share/oscript/lib | ||
|
||
.PHONY: all install uninstall dist lib clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
_opm_complete() | ||
{ | ||
local cur opts | ||
COMPREPLY=() | ||
cur="${COMP_WORDS[COMP_CWORD]}" | ||
if [[ $COMP_CWORD == 1 ]] ; then | ||
opts="build prepare install update app help config list run test version" | ||
COMPREPLY=( $(compgen -W "$opts" -- ${cur}) ) | ||
return 0 | ||
fi | ||
COMPREPLY=( $(compgen -df ${cur}) ) | ||
return 0 | ||
} | ||
complete -F _opm_complete opm | ||
|
||
# vim: filetype=sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
/etc | ||
/usr/share/oscript/bin | ||
/usr/share/oscript/lib | ||
/etc/bash_completion.d | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.