diff options
author | runge <runge> | 2006-11-08 00:46:37 +0000 |
---|---|---|
committer | runge <runge> | 2006-11-08 00:46:37 +0000 |
commit | 2635ae4407751cc16745918114fbc1ce31eb7c4f (patch) | |
tree | dcce59b0c0e196c592fda5097daed687bb4e7360 /prepare_x11vnc_dist.sh | |
parent | 17f88b494cd20e3c93ef77f3e1e68c7166c767ea (diff) | |
download | libtdevnc-2635ae4407751cc16745918114fbc1ce31eb7c4f.tar.gz libtdevnc-2635ae4407751cc16745918114fbc1ce31eb7c4f.zip |
configure.ac -R and macosx, prepare_x11vnc_dist.sh rpm fix
Diffstat (limited to 'prepare_x11vnc_dist.sh')
-rw-r--r-- | prepare_x11vnc_dist.sh | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/prepare_x11vnc_dist.sh b/prepare_x11vnc_dist.sh index 9e7aa0b..17a67a9 100644 --- a/prepare_x11vnc_dist.sh +++ b/prepare_x11vnc_dist.sh @@ -44,9 +44,31 @@ into a versatile and performant while still easy to use program.\ x11vnc was put together and is (actively ;-) maintained by\ Karl Runge <runge@karlrunge.com>\ \ -%prep\ -/' \ -> x11vnc.spec.in +/i' \ +> x11vnc.spec.in.tmp + +perl -e ' + $s = 0; + while (<>) { + if ($s) { + if (/^\s*$/) { + $s = 0; + } + } else { + if (/^%files\s*$/ || /^%files devel/) { + $s = 1; + } + } + next if $s; + if (/^%files x11vnc/) { + print "\%files\n"; + print "\%doc README x11vnc/ChangeLog\n"; + next; + } + print; + }' < x11vnc.spec.in.tmp > x11vnc.spec.in + +rm -f x11vnc.spec.in.tmp mv libvncserver/Makefile.am libvncserver/Makefile.am.LibVNCServer |