Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update notes for building with standard mingw32 packages.
- Loading branch information
Showing
2 changed files
with
91 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
# Script for packaging up a xorp tarball for install in | ||
# /usr/local/ | ||
|
||
rm -fr /usr/local/xorp | ||
|
||
MINGW_LIB=/usr/local/i386-mingw32/lib | ||
|
||
scons shared=no build=mingw32 STRIP=i686-pc-mingw32-strip \ | ||
CC=i686-pc-mingw32-gcc CXX=i686-pc-mingw32-g++ \ | ||
RANLIB=i686-pc-mingw32-ranlib \ | ||
AR=i686-pc-mingw32-ar LD=i686-pc-mingw32-ld install | ||
|
||
#cp $MINGW_LIB/ssleay32.dll /usr/local/xorp/sbin/ | ||
#cp $MINGW_LIB/libeay32.dll /usr/local/xorp/sbin/ | ||
# Total hack...installed mingw32-libgnurx rpm for a working library | ||
#cp /usr/i686-pc-mingw32/sys-root/mingw/bin/libgnurx-0.dll /usr/local/xorp/sbin/ | ||
|
||
|
||
PWD=$(pwd) | ||
userdir=$(expr match "$PWD" '\(/home/[0-Z]*/\).*') | ||
|
||
if [ "_$userdir" == "_" ] | ||
then | ||
userdir = "./" | ||
fi | ||
|
||
cd /usr/local | ||
|
||
if [ ! -d ${userdir}tmp ] | ||
then | ||
echo "Creating directory: ${userdir}tmp to hold xorp package." | ||
mkdir -p ${userdir}tmp | ||
fi | ||
|
||
if zip -9 ${userdir}tmp/xorp_win32.zip -r xorp | ||
then | ||
echo "" | ||
echo "Created package: ${userdir}tmp/xorp_win32.zip" | ||
echo "" | ||
else | ||
echo "" | ||
echo "ERROR: There were errors trying to create: ${userdir}tmp/xorp_win32.zip" | ||
echo "" | ||
fi | ||
|
||
cd - |