Bug#183891: gcc-snapshot: [PATCH] Slight update to README.snapshot
Package: gcc-snapshot
Version: 20030301-1
Severity: wishlist
Tags: patch
Hi,
Below is a small patch to README.snapshot to give a sample wrapper
script for gcc-snapshot. I recently made one but forgot the " " around
my $@ and was stumped as to why gcc would not parse it's command line
correctly.
As I imagine this is a pretty common thing to do with this package, a
correct sample might save someone some time that I wasted
-i
*** /home/delsarto/README.snapshot.diff
--- README.snapshot.old 2003-03-08 11:18:03.000000000 +1100
+++ README.snapshot 2003-03-08 11:20:45.000000000 +1100
@@ -15,5 +15,18 @@
LD_LIBRARY_PATH=/usr/lib/gcc-snapshot/lib:$LD_LIBRARY_PATH
PATH=/usr/lib/gcc-snapshot/bin:$PATH
+You might also like to use a shell script to wrap up this
+funcationality, e.g.
+
+place in /usr/local/bin/gcc-snapshot and chmod +x it
+
+#!/bin/bash
+LD_LIBRARY_PATH=/usr/lib/gcc-snapshot/lib:$LD_LIBRARY_PATH
+PATH=/usr/lib/gcc-snapshot/bin:$PATH
+gcc "$@"
+
+Don't forget the quotes around the $@ or gcc will not parse it's
+command line correctly!
+
Unset these variables before building Debian packages destined for an
upload to ftp-master.debian.org.
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux ellington 2.4.20-686 #1 Mon Jan 13 22:22:30 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages gcc-snapshot depends on:
ii binutils 2.13.90.0.18-1.1 The GNU assembler, linker and bina
ii libc6 2.3.1-14 GNU C Library: Shared libraries an
ii xlibs 4.2.1-6 X Window System client libraries
ii zlib1g 1:1.1.4-10 compression library - runtime
-- no debconf information
Reply to: