forked from visualfc/liteide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request visualfc#381 from FredFoonly/master
OpenBSD 5.6
- Loading branch information
Showing
22 changed files
with
343 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,9 @@ | |
*.dylib | ||
*.7z | ||
|
||
#Emacs | ||
*~ | ||
|
||
# Qt-es | ||
|
||
*.pro.user | ||
|
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,90 @@ | ||
#!/bin/sh | ||
|
||
export BUILD_ROOT=$PWD | ||
|
||
if [ -z $LITEIDE_ROOT ]; then | ||
export LITEIDE_ROOT=$PWD/../liteidex | ||
fi | ||
|
||
echo build liteide | ||
echo QTDIR=$QTDIR | ||
echo GOROOT=$GOROOT | ||
echo BUILD_ROOT=$BUILD_ROOT | ||
echo LITEIDE_ROOT=$LITEIDE_ROOT | ||
echo . | ||
|
||
if [ -z $QTDIR ]; then | ||
echo 'error, QTDIR is null' | ||
exit 1 | ||
fi | ||
|
||
export PATH=$QTDIR/bin:$PATH | ||
|
||
echo qmake liteide ... | ||
echo . | ||
qmake $LITEIDE_ROOT -spec openbsd-g++ "CONFIG+=release" | ||
|
||
if [ $? -ge 1 ]; then | ||
echo 'error, qmake fail' | ||
exit 1 | ||
fi | ||
|
||
echo make liteide ... | ||
echo . | ||
make | ||
|
||
if [ $? -ge 1 ]; then | ||
echo 'error, make fail' | ||
exit 1 | ||
fi | ||
|
||
go version | ||
if [ $? -ge 1 ]; then | ||
echo 'error, not find go in PATH' | ||
exit 1 | ||
fi | ||
|
||
echo build liteide tools ... | ||
cd $LITEIDE_ROOT | ||
export GOPATH=$PWD:$GOPATH | ||
|
||
go install -ldflags "-s" -v github.com/visualfc/gotools | ||
|
||
if [ $? -ge 1 ]; then | ||
echo 'error, go install fail' | ||
exit 1 | ||
fi | ||
|
||
go install -ldflags "-s" -v github.com/nsf/gocode | ||
|
||
if [ $? -ge 1 ]; then | ||
echo 'error, go install fail' | ||
exit 1 | ||
fi | ||
|
||
echo deploy ... | ||
|
||
cd $BUILD_ROOT | ||
|
||
rm -r liteide | ||
mkdir -p liteide | ||
mkdir -p liteide/local/bin | ||
mkdir -p liteide/local/share/liteide | ||
mkdir -p liteide/local/share/pixmaps | ||
mkdir -p liteide/local/lib/liteide/plugins | ||
|
||
cp -RpP $LITEIDE_ROOT/LICENSE.LGPL liteide | ||
cp -RpP $LITEIDE_ROOT/LGPL_EXCEPTION.TXT liteide | ||
cp -RpP $LITEIDE_ROOT/../README.md liteide | ||
cp -RpP $LITEIDE_ROOT/../CONTRIBUTORS liteide | ||
|
||
cp $LITEIDE_ROOT/liteide/bin/liteide liteide/local/bin | ||
cp $LITEIDE_ROOT/liteide/bin/*.so.* liteide/local/lib | ||
cp -RpP $LITEIDE_ROOT/bin/gotools liteide/local/bin | ||
cp -RpP $LITEIDE_ROOT/bin/gocode liteide/local/bin | ||
cp -RpP $LITEIDE_ROOT/liteide/lib/liteide/plugins/*.so liteide/local/lib/liteide/plugins | ||
|
||
cp -r $LITEIDE_ROOT/deploy/* liteide/local/share/liteide/ | ||
cp -r $LITEIDE_ROOT/os_deploy/openbsd/* liteide/local/share/liteide/ | ||
cp $LITEIDE_ROOT/deploy/welcome/images/liteide-logo*.png liteide/local/share/pixmaps | ||
|
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,17 @@ | ||
# cross-compiler linux arm5 | ||
|
||
GOROOT=$HOME/go | ||
#GOBIN= | ||
GOARCH=arm | ||
GOARM=5 | ||
GOOS=linux | ||
CGO_ENABLED=0 | ||
|
||
PATH=$GOROOT/bin:$PATH | ||
|
||
LITEIDE_GDB=gdb | ||
LITEIDE_MAKE=make | ||
LITEIDE_TERM=/usr/bin/open | ||
LITEIDE_TERMARGS=-a Terminal | ||
LITEIDE_EXEC=/usr/X11R6/bin/xterm | ||
LITEIDE_EXECOPT=-e |
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,17 @@ | ||
# cross-compiler linux arm6 | ||
|
||
GOROOT=$HOME/go | ||
#GOBIN= | ||
GOARCH=arm | ||
GOARM=6 | ||
GOOS=linux | ||
CGO_ENABLED=0 | ||
|
||
PATH=$GOROOT/bin:$PATH | ||
|
||
LITEIDE_GDB=gdb | ||
LITEIDE_MAKE=make | ||
LITEIDE_TERM=/usr/bin/open | ||
LITEIDE_TERMARGS=-a Terminal | ||
LITEIDE_EXEC=/usr/X11R6/bin/xterm | ||
LITEIDE_EXECOPT=-e |
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 @@ | ||
# native compiler drawin 386 | ||
|
||
GOROOT=$HOME/go | ||
#GOBIN= | ||
GOARCH=386 | ||
GOOS=darwin | ||
CGO_ENABLED=1 | ||
|
||
PATH=$GOROOT/bin:$PATH | ||
|
||
LITEIDE_GDB=/usr/local/bin/gdb | ||
LITEIDE_MAKE=make | ||
LITEIDE_TERM=/usr/bin/open | ||
LITEIDE_TERMARGS=-a Terminal | ||
LITEIDE_EXEC=/usr/X11R6/bin/xterm | ||
LITEIDE_EXECOPT=-e |
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 @@ | ||
# native compiler drawin amd64 | ||
|
||
GOROOT=$HOME/go | ||
#GOBIN= | ||
GOARCH=amd64 | ||
GOOS=darwin | ||
CGO_ENABLED=1 | ||
|
||
PATH=$GOROOT/bin:$PATH | ||
|
||
LITEIDE_GDB=/usr/local/bin/gdb | ||
LITEIDE_MAKE=make | ||
LITEIDE_TERM=/usr/bin/open | ||
LITEIDE_TERMARGS=-a Terminal | ||
LITEIDE_EXEC=/usr/X11R6/bin/xterm | ||
LITEIDE_EXECOPT=-e |
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 @@ | ||
# native compiler drawin 386 | ||
|
||
GOROOT=$HOME/go | ||
#GOBIN= | ||
GOARCH=386 | ||
GOOS=freebsd | ||
CGO_ENABLED=1 | ||
|
||
PATH=$GOROOT/bin:$PATH | ||
|
||
LITEIDE_GDB=/usr/local/bin/gdb | ||
LITEIDE_MAKE=make | ||
LITEIDE_TERM=/usr/bin/open | ||
LITEIDE_TERMARGS=-a Terminal | ||
LITEIDE_EXEC=/usr/X11R6/bin/xterm | ||
LITEIDE_EXECOPT=-e |
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 @@ | ||
# native compiler drawin amd64 | ||
|
||
GOROOT=$HOME/go | ||
#GOBIN= | ||
GOARCH=amd64 | ||
GOOS=freebsd | ||
CGO_ENABLED=1 | ||
|
||
PATH=$GOROOT/bin:$PATH | ||
|
||
LITEIDE_GDB=/usr/local/bin/gdb | ||
LITEIDE_MAKE=make | ||
LITEIDE_TERM=/usr/bin/open | ||
LITEIDE_TERMARGS=-a Terminal | ||
LITEIDE_EXEC=/usr/X11R6/bin/xterm | ||
LITEIDE_EXECOPT=-e |
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 @@ | ||
# cross-compiler linux 386 | ||
|
||
GOROOT=$HOME/go | ||
#GOBIN= | ||
GOARCH=386 | ||
GOOS=linux | ||
CGO_ENABLED=0 | ||
|
||
PATH=$GOROOT/bin:$PATH | ||
|
||
LITEIDE_GDB=gdb | ||
LITEIDE_MAKE=make | ||
LITEIDE_TERM=/usr/bin/open | ||
LITEIDE_TERMARGS=-a Terminal | ||
LITEIDE_EXEC=/usr/X11R6/bin/xterm | ||
LITEIDE_EXECOPT=-e |
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 @@ | ||
# cross-compiler linux amd64 | ||
|
||
GOROOT=$HOME/go | ||
#GOBIN= | ||
GOARCH=amd64 | ||
GOOS=linux | ||
CGO_ENABLED=0 | ||
|
||
PATH=$GOROOT/bin:$PATH | ||
|
||
LITEIDE_GDB=gdb | ||
LITEIDE_MAKE=make | ||
LITEIDE_TERM=/usr/bin/open | ||
LITEIDE_TERMARGS=-a Terminal | ||
LITEIDE_EXEC=/usr/X11R6/bin/xterm | ||
LITEIDE_EXECOPT=-e |
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 @@ | ||
# cross-compiler windows 386 | ||
|
||
GOROOT=$HOME/go | ||
#GOBIN= | ||
GOARCH=386 | ||
GOOS=windows | ||
CGO_ENABLED=0 | ||
|
||
PATH=$GOROOT/bin:$PATH | ||
|
||
LITEIDE_GDB=gdb | ||
LITEIDE_MAKE=make | ||
LITEIDE_TERM=/usr/bin/open | ||
LITEIDE_TERMARGS=-a Terminal | ||
LITEIDE_EXEC=/usr/X11R6/bin/xterm | ||
LITEIDE_EXECOPT=-e |
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 @@ | ||
# cross-compiler windows amd64 | ||
|
||
GOROOT=$HOME/go | ||
#GOBIN= | ||
GOARCH=amd64 | ||
GOOS=windows | ||
CGO_ENABLED=0 | ||
|
||
PATH=$GOROOT/bin:$PATH | ||
|
||
LITEIDE_GDB=gdb | ||
LITEIDE_MAKE=make | ||
LITEIDE_TERM=/usr/bin/open | ||
LITEIDE_TERMARGS=-a Terminal | ||
LITEIDE_EXEC=/usr/X11R6/bin/xterm | ||
LITEIDE_EXECOPT=-e |
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 @@ | ||
# native compiler openbsd 386 | ||
|
||
GOROOT=$HOME/go | ||
#GOBIN= | ||
GOARCH=386 | ||
GOOS=openbsd | ||
CGO_ENABLED=1 | ||
|
||
PATH=$GOROOT/bin:$PATH | ||
|
||
LITEIDE_GDB=/usr/bin/gdb | ||
LITEIDE_MAKE=make | ||
LITEIDE_TERM=/usr/local/bin/open | ||
LITEIDE_TERMARGS= | ||
LITEIDE_EXEC=/usr/X11R6/bin/xterm | ||
LITEIDE_EXECOPT=-e |
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 @@ | ||
# native compiler openbsd amd64 | ||
|
||
GOROOT=$HOME/go | ||
#GOBIN= | ||
GOARCH=amd64 | ||
GOOS=openbsd | ||
CGO_ENABLED=1 | ||
|
||
PATH=$GOROOT/bin:$PATH | ||
|
||
LITEIDE_GDB=/usr/bin/gdb | ||
LITEIDE_MAKE=make | ||
LITEIDE_TERM=/usr/local/bin/open | ||
LITEIDE_TERMARGS= | ||
LITEIDE_EXEC=/usr/X11R6/bin/xterm | ||
LITEIDE_EXECOPT=-e |
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 @@ | ||
# native compiler openbsd amd64 | ||
|
||
#GOROOT=/usr/local/go | ||
#GOBIN= | ||
#GOARCH=amd64 | ||
#GOOS=freebsd | ||
#CGO_ENABLED=1 | ||
|
||
#PATH=$GOROOT/bin:$PATH | ||
|
||
LITEIDE_GDB=/usr/bin/gdb | ||
LITEIDE_MAKE=make | ||
LITEIDE_TERM=/usr/local/bin/open | ||
LITEIDE_TERMARGS= | ||
LITEIDE_EXEC=/usr/X11R6/bin/xterm | ||
LITEIDE_EXECOPT=-e |
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
Oops, something went wrong.