]> git.pld-linux.org Git - packages/gcc.git/blobdiff - gcc-gcj-backport.patch
2.95.3-test2
[packages/gcc.git] / gcc-gcj-backport.patch
index 71a62429652a1aff3c91636b7e48dabbfb55d2c9..d5d930d2fe1a87ab172073bf55eb2bbd399b40f7 100644 (file)
@@ -1,3 +1,5 @@
+#! /bin/sh -e
+
 # DP: J*va patch set for gcc-2.95.2 
 # DP: taken from http://waitaki.otago.ac.nz/~bryce/gcj/
 # DP:
@@ -6,6 +8,21 @@
 # DP: latest libgcj snapshots and cvs tree without the problems of the
 # DP: current unstable cvs gcc tree (last update 1999-10-31).
 
+if [ $# -eq 3 -a "$2" = '-d' ]; then
+    pdir="-d $3"
+elif [ $# -ne 1 ]; then
+    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+    exit 1
+fi
+case "$1" in
+    -patch) patch $pdir -f --no-backup-if-mismatch -p1 < $0;;
+    -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p1 < $0;;
+    *)
+       echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+       exit 1
+esac
+exit 0
+
 Only in gcc-2.95.2/: build
 diff -u -r gcc-2.95.2-orig/gcc/java/ChangeLog gcc-2.95.2/gcc/java/ChangeLog
 --- gcc-2.95.2-orig/gcc/java/ChangeLog Mon Oct 25 19:59:13 1999
This page took 0.088479 seconds and 4 git commands to generate.