[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#11940: [BETTER PATCH] Non-portable stuff in TIMIDITY
From:       Rob Napier <rnapier () employees ! org>
Date:       2000-09-27 21:17:50
[Download RAW message or body]

Oops. Forgot that the last patch would still return 1 on failure, and
so the makefile would fail, attached is a better (?) patch. I'd still
rather turn all of this into a makefile (or get rid of whatever the
need of this .cpp->.c silliness is), but that may be more trouble than
its worth.

Index: makelinks
===================================================================
RCS file: /home/projects/kdecvs/cvsroot/kdemultimedia/kmidi/TIMIDITY/makelinks,v
retrieving revision 1.5
diff -u -3 -p -r1.5 makelinks
--- makelinks	2000/08/09 12:06:31	1.5
+++ makelinks	2000/09/27 21:15:39
@@ -1,67 +1,66 @@
 #!/bin/sh
-ln -sf ../alsa_a.cpp alsa_a.c
-ln -sf ../arts_a.cpp arts_a.c
-ln -sf ../b_out.cpp b_out.c
-ln -sf ../bag.cpp bag.c
-ln -sf ../bsd20_a.cpp bsd20_a.c
-ln -sf ../celeste_e.cpp celeste_e.c
-ln -sf ../chorus_e.cpp chorus_e.c
-ln -sf ../common.cpp common.c
-ln -sf ../common.h common.h
-ln -sf ../config.h config.h
-ln -sf ../controls.cpp controls.c
-ln -sf ../controls.h controls.h
-ln -sf ../cfg.cpp cfg.c
-ln -sf ../cfg.l cfg.l
-ln -sf ../ctl.cpp ctl.c
-ln -sf ../ctl.h ctl.h
-ln -sf ../dec_a.cpp dec_a.c
-ln -sf ../dumb_c.cpp dumb_c.c
-ln -sf ../effects.cpp effects.c
-ln -sf ../effects.h effects.h
-ln -sf ../esd_a.cpp esd_a.c
-ln -sf ../fffload.cpp fffload.c
-ln -sf ../filter.cpp filter.c
-ln -sf ../filter.h filter.h
-ln -sf ../gentxt.cpp gentxt.c
-ln -sf ../getopt.cpp getopt.c
-ln -sf ../hpux_a.cpp hpux_a.c
-ln -sf ../hpux_d_a.cpp hpux_d_a.c
-ln -sf ../instrum.cpp instrum.c
-ln -sf ../instrum.h instrum.h
-ln -sf ../linux_a.cpp linux_a.c
-ln -sf ../linux_a2.cpp linux_a2.c
-ln -sf ../mix.cpp mix.c
-ln -sf ../mix.h mix.h
-ln -sf ../nas_a.cpp nas_a.c
-ln -sf ../ncurs_c.cpp ncurs_c.c
-ln -sf ../output.cpp output.c
-ln -sf ../output.h output.h
-ln -sf ../phaser_e.cpp phaser_e.c
-ln -sf ../playmidi.cpp playmidi.c
-ln -sf ../playmidi.h playmidi.h
-ln -sf ../raw_a.cpp raw_a.c
-ln -sf ../readmidi.cpp readmidi.c
-ln -sf ../readmidi.h readmidi.h
-ln -sf ../readsbk.cpp readsbk.c
-ln -sf ../resample.cpp resample.c
-ln -sf ../resample.h resample.h
-ln -sf ../resample_f.cpp resample_f.c
-ln -sf ../resample_l.cpp resample_l.c
-ln -sf ../reverb_e.cpp reverb_e.c
-ln -sf ../sbk.h sbk.h
-ln -sf ../sbktext.cpp sbktext.c
-ln -sf ../sf2cfg.cpp sf2cfg.c
-ln -sf ../sflayer.h sflayer.h
-ln -sf ../slang_c.cpp slang_c.c
-ln -sf ../sndfont.cpp sndfont.c
-ln -sf ../sun_a.cpp sun_a.c
-ln -sf ../tables.cpp tables.c
-ln -sf ../tables.h tables.h
-ln -sf ../timidity.cpp timidity.c
-ln -sf ../version.h version.h
-ln -sf ../wav2pat.cpp wav2pat.c
-ln -sf ../wave_a.cpp wave_a.c
-ln -sf ../cfg.l cfg.l
-ln -sf ../BITMAPS BITMAPS
-
+if [ ! -h alsa_a.c ]; then ln -f -s ../alsa_a.cpp alsa_a.c ; fi
+if [ ! -h arts_a.c ]; then ln -f -s ../arts_a.cpp arts_a.c ; fi
+if [ ! -h b_out.c ]; then ln -f -s ../b_out.cpp b_out.c ; fi
+if [ ! -h bag.c ]; then ln -f -s ../bag.cpp bag.c ; fi
+if [ ! -h bsd20_a.c ]; then ln -f -s ../bsd20_a.cpp bsd20_a.c ; fi
+if [ ! -h celeste_e.c ]; then ln -f -s ../celeste_e.cpp celeste_e.c ; fi
+if [ ! -h chorus_e.c ]; then ln -f -s ../chorus_e.cpp chorus_e.c ; fi
+if [ ! -h common.c ]; then ln -f -s ../common.cpp common.c ; fi
+if [ ! -h common.h ]; then ln -f -s ../common.h common.h ; fi
+if [ ! -h config.h ]; then ln -f -s ../config.h config.h ; fi
+if [ ! -h controls.c ]; then ln -f -s ../controls.cpp controls.c ; fi
+if [ ! -h controls.h ]; then ln -f -s ../controls.h controls.h ; fi
+if [ ! -h cfg.c ]; then ln -f -s ../cfg.cpp cfg.c ; fi
+if [ ! -h cfg.l ]; then ln -f -s ../cfg.l cfg.l ; fi
+if [ ! -h ctl.c ]; then ln -f -s ../ctl.cpp ctl.c ; fi
+if [ ! -h ctl.h ]; then ln -f -s ../ctl.h ctl.h ; fi
+if [ ! -h dec_a.c ]; then ln -f -s ../dec_a.cpp dec_a.c ; fi
+if [ ! -h dumb_c.c ]; then ln -f -s ../dumb_c.cpp dumb_c.c ; fi
+if [ ! -h effects.c ]; then ln -f -s ../effects.cpp effects.c ; fi
+if [ ! -h effects.h ]; then ln -f -s ../effects.h effects.h ; fi
+if [ ! -h esd_a.c ]; then ln -f -s ../esd_a.cpp esd_a.c ; fi
+if [ ! -h fffload.c ]; then ln -f -s ../fffload.cpp fffload.c ; fi
+if [ ! -h filter.c ]; then ln -f -s ../filter.cpp filter.c ; fi
+if [ ! -h filter.h ]; then ln -f -s ../filter.h filter.h ; fi
+if [ ! -h gentxt.c ]; then ln -f -s ../gentxt.cpp gentxt.c ; fi
+if [ ! -h getopt.c ]; then ln -f -s ../getopt.cpp getopt.c ; fi
+if [ ! -h hpux_a.c ]; then ln -f -s ../hpux_a.cpp hpux_a.c ; fi
+if [ ! -h hpux_d_a.c ]; then ln -f -s ../hpux_d_a.cpp hpux_d_a.c ; fi
+if [ ! -h instrum.c ]; then ln -f -s ../instrum.cpp instrum.c ; fi
+if [ ! -h instrum.h ]; then ln -f -s ../instrum.h instrum.h ; fi
+if [ ! -h linux_a.c ]; then ln -f -s ../linux_a.cpp linux_a.c ; fi
+if [ ! -h linux_a2.c ]; then ln -f -s ../linux_a2.cpp linux_a2.c ; fi
+if [ ! -h mix.c ]; then ln -f -s ../mix.cpp mix.c ; fi
+if [ ! -h mix.h ]; then ln -f -s ../mix.h mix.h ; fi
+if [ ! -h nas_a.c ]; then ln -f -s ../nas_a.cpp nas_a.c ; fi
+if [ ! -h ncurs_c.c ]; then ln -f -s ../ncurs_c.cpp ncurs_c.c ; fi
+if [ ! -h output.c ]; then ln -f -s ../output.cpp output.c ; fi
+if [ ! -h output.h ]; then ln -f -s ../output.h output.h ; fi
+if [ ! -h phaser_e.c ]; then ln -f -s ../phaser_e.cpp phaser_e.c ; fi
+if [ ! -h playmidi.c ]; then ln -f -s ../playmidi.cpp playmidi.c ; fi
+if [ ! -h playmidi.h ]; then ln -f -s ../playmidi.h playmidi.h ; fi
+if [ ! -h raw_a.c ]; then ln -f -s ../raw_a.cpp raw_a.c ; fi
+if [ ! -h readmidi.c ]; then ln -f -s ../readmidi.cpp readmidi.c ; fi
+if [ ! -h readmidi.h ]; then ln -f -s ../readmidi.h readmidi.h ; fi
+if [ ! -h readsbk.c ]; then ln -f -s ../readsbk.cpp readsbk.c ; fi
+if [ ! -h resample.c ]; then ln -f -s ../resample.cpp resample.c ; fi
+if [ ! -h resample.h ]; then ln -f -s ../resample.h resample.h ; fi
+if [ ! -h resample_f.c ]; then ln -f -s ../resample_f.cpp resample_f.c ; fi
+if [ ! -h resample_l.c ]; then ln -f -s ../resample_l.cpp resample_l.c ; fi
+if [ ! -h reverb_e.c ]; then ln -f -s ../reverb_e.cpp reverb_e.c ; fi
+if [ ! -h sbk.h ]; then ln -f -s ../sbk.h sbk.h ; fi
+if [ ! -h sbktext.c ]; then ln -f -s ../sbktext.cpp sbktext.c ; fi
+if [ ! -h sf2cfg.c ]; then ln -f -s ../sf2cfg.cpp sf2cfg.c ; fi
+if [ ! -h sflayer.h ]; then ln -f -s ../sflayer.h sflayer.h ; fi
+if [ ! -h slang_c.c ]; then ln -f -s ../slang_c.cpp slang_c.c ; fi
+if [ ! -h sndfont.c ]; then ln -f -s ../sndfont.cpp sndfont.c ; fi
+if [ ! -h sun_a.c ]; then ln -f -s ../sun_a.cpp sun_a.c ; fi
+if [ ! -h tables.c ]; then ln -f -s ../tables.cpp tables.c ; fi
+if [ ! -h tables.h ]; then ln -f -s ../tables.h tables.h ; fi
+if [ ! -h timidity.c ]; then ln -f -s ../timidity.cpp timidity.c ; fi
+if [ ! -h version.h ]; then ln -f -s ../version.h version.h ; fi
+if [ ! -h wav2pat.c ]; then ln -f -s ../wav2pat.cpp wav2pat.c ; fi
+if [ ! -h wave_a.c ]; then ln -f -s ../wave_a.cpp wave_a.c ; fi
+if [ ! -h cfg.l ]; then ln -f -s ../cfg.l cfg.l ; fi
+if [ ! -h BITMAPS ]; then ln -f -s ../BITMAPS BITMAPS ; fi

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic