diff options
Diffstat (limited to 'lang/xds/files/patch-bin__xcwork')
-rw-r--r-- | lang/xds/files/patch-bin__xcwork | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/lang/xds/files/patch-bin__xcwork b/lang/xds/files/patch-bin__xcwork new file mode 100644 index 000000000000..5361992a0e07 --- /dev/null +++ b/lang/xds/files/patch-bin__xcwork @@ -0,0 +1,100 @@ +--- 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 |