1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/lang/xds/files/patch-bin__xcwork
Alejandro Pulver 08ba2bc63c This is Native XDS-x86 for Linux,
it is setup to produce native FreeBSD binaries.

WWW: http://www.excelsior-usa.com/

PR:		ports/108498
Submitted by:	coumarin at gmail.com
2007-02-17 03:31:07 +00:00

101 lines
2.0 KiB
Plaintext

--- bin/xcwork.orig Tue Nov 16 02:46:28 1999
+++ bin/xcwork Sun Jan 28 22:36:27 2007
@@ -1,34 +1,5 @@
#!/bin/sh
-DoCreate() {
- echo "creating directory structure..."
- for DIR in def obj src sym; do
- if ! test -d $DIR
- then
- if ! mkdir $DIR
- then
- echo "Error making $DIR subdirectory"
- exit 1
- fi
- fi
- done
- echo "creating appropriate redirection file..."
- cat >xc.red <<EOTXT
-xc.* = $XDSDIR/bin
-*.tem = $XDSDIR/bin
-*.sym = ./sym;$XDSDIR/sym/x86
-*.a = .;$XDSDIR/lib/x86
-*.o = ./obj
-*.def = ./def
-*.mod = ./src
-*.ob2 = ./src
-*.prj = .
-EOTXT
- echo
- echo "DONE"
- echo
-}
-
echo
echo "==============================================================="
echo " Native XDS-x86 2.4 Linux Edition."
@@ -40,36 +11,29 @@
echo "==============================================================="
echo
-case $# in
-0) XDSDIR=`dirname $0`; XDSDIR=`dirname $XDSDIR` ;;
-1) XDSDIR=$1 ;;
-*) Usage; exit 1 ;;
-esac
-
-if test -d $XDSDIR # && test -x $XDSDIR/bin/xc
-then
- echo "Are you sure you want to create directories and redirection file"
- echo "in $PWD? (Y/N)"
- while :
- do
- read YN
- case $YN in
- Y|y) DoCreate; exit ;;
- N|n) exit ;;
- esac
- echo "Please type Y or N"
- done
- exit
-
-else
-
- echo
- echo "Usage:"
- echo " xcwork [ path_to_XDS_installation_directory ]"
- echo
- echo "Example:"
- echo " xcwork /usr/local/xds"
- echo
- echo "-------------------------------------------------------------"
-
-fi
+echo "creating directory structure..."
+for DIR in def obj src sym; do
+ if ! test -d $DIR
+ then
+ if ! mkdir $DIR
+ then
+ echo "Error making $DIR subdirectory"
+ exit 1
+ fi
+ fi
+done
+echo "creating appropriate redirection file..."
+cat >xc.red <<EOTXT
+xc.* = %%XDSDIR%%/bin
+*.tem = %%XDSDIR%%/bin
+*.sym = ./sym;%%XDSDIR%%/sym/x86
+*.a = .;%%XDSDIR%%/lib/x86
+*.o = ./obj
+*.def = ./def
+*.mod = ./src
+*.ob2 = ./src
+*.prj = .
+EOTXT
+echo
+echo "DONE"
+echo