From b739de430878e48eb6b56cadbe59fc65bbf57d51 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 27 Apr 2017 19:33:03 +0200 Subject: move fallback.pl to scripts --- GNUmakefile | 6 +++--- fallback.pl | 26 -------------------------- scripts/fallback.pl | 26 ++++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 29 deletions(-) delete mode 100755 fallback.pl create mode 100755 scripts/fallback.pl diff --git a/GNUmakefile b/GNUmakefile index 23d4656..8ecc5a0 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -60,7 +60,7 @@ include $(srcdir)/mk/Autoconf.mk ac_jpeg_ver = $(shell \ $(call ac_init,for libjpeg version);\ - $(call ac_s_cmd,scripts/jpeg-version.sh);\ + $(call ac_s_cmd, $(srcdir)/scripts/jpeg-version.sh);\ $(call ac_fini)) define make-config @@ -183,8 +183,8 @@ RegEdit.o : CFLAGS += -Wno-missing-prototypes -Wno-strict-prototypes -Wno-maybe- ida: $(OBJS_IDA) $(OBJS_READER) $(OBJS_WRITER) -Ida.ad.h: Ida.ad $(srcdir)/fallback.pl - perl $(srcdir)/fallback.pl < $< > $@ +Ida.ad.h: Ida.ad $(srcdir)/scripts/fallback.pl + perl $(srcdir)/scripts/fallback.pl < $< > $@ logo.h: logo.jpg hexdump -v -e '1/1 "0x%02x,"' < $< > $@ diff --git a/fallback.pl b/fallback.pl deleted file mode 100755 index 03706c4..0000000 --- a/fallback.pl +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/perl -w -# -# build header file from -# -use strict; - -while (my $line = <>) { - chomp $line; - - # ignore comments - next if $line =~ /^!/; -# next if $line =~ /^\s*$/; - - # quote stuff - $line =~ s/\\/\\\\/g; - $line =~ s/\"/\\\"/g; - - # continued line? - if ($line =~ s/\\\\$//) { - printf "\"%s\"\n",$line; - next; - } - - # write out - printf "\"%s\",\n",$line; -} diff --git a/scripts/fallback.pl b/scripts/fallback.pl new file mode 100755 index 0000000..03706c4 --- /dev/null +++ b/scripts/fallback.pl @@ -0,0 +1,26 @@ +#!/usr/bin/perl -w +# +# build header file from +# +use strict; + +while (my $line = <>) { + chomp $line; + + # ignore comments + next if $line =~ /^!/; +# next if $line =~ /^\s*$/; + + # quote stuff + $line =~ s/\\/\\\\/g; + $line =~ s/\"/\\\"/g; + + # continued line? + if ($line =~ s/\\\\$//) { + printf "\"%s\"\n",$line; + next; + } + + # write out + printf "\"%s\",\n",$line; +} -- cgit