Skip to content

Commit fdac8fd

Browse files
author
Shawn David Pringle, B.Sc.
committed
* modified code so that the building of a Debian archive will fail much later on in the process than before
1 parent 5f3a062 commit fdac8fd

5 files changed

Lines changed: 47 additions & 28 deletions

File tree

include/std/convert.e

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
--# This file uses ISO-8859-1 encoding
21
--****
32
-- == Data Type Conversion
43
--
@@ -24,6 +23,11 @@ constant
2423
constant M_ALLOC = 16
2524
atom mem = machine_func(M_ALLOC,8)
2625

26+
-- Character codes in ISO8859-1
27+
-- '$', '£', '¤', '¥', '€'
28+
constant POUND = #A3, CURRENCY = #A4, YEN = #A5, EURO = #80
29+
30+
2731
--****
2832
-- === Routines
2933

@@ -593,7 +597,7 @@ end function
593597
-- the result by a further 10. Thus ##3845%## gives a value of ##(3845 / 100) ==> 38.45##,
594598
-- and ##3845%%## gives a value of ##(3845 / 1000) ==> 3.845##.
595599
-- # You can have single currency symbol before the first digit or after the last
596-
-- digit. A currency symbol is any character of the string: "$£¤¥€".
600+
-- digit. A currency symbol is any character of the string: "$£¤¥€".
597601
-- # You can have any number of whitespace characters before the first digit and
598602
-- after the last digit.
599603
-- # The currency, sign and base symbols can appear in any order. Thus ##"$ -21.10"## is
@@ -689,7 +693,7 @@ public function to_number( sequence text_in, integer return_bad_pos = 0)
689693
lBadPos = i
690694
end if
691695

692-
case '$', '£', '¤', '¥', '€' then
696+
case '$', POUND, CURRENCY, YEN, EURO then
693697
if lCurrencyFound = 0 then
694698
lCurrencyFound = 1
695699
lLastDigit = lDigitCount

packaging/debian/Makefile

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ include Makefile.eu
33

44
euphoria : update
55
echo TARGET: $@
6+
-ln -s ../.. euphoria
67
cd $(DEB_SOURCE_DIR) && dpkg-buildpackage -nc
8+
79
binclean :
810
for d in $(BUILD_DIRS); \
911
do \
@@ -12,7 +14,7 @@ binclean :
1214
-rm eui euc eu.a eub
1315

1416
clean :
15-
-rm -rf $(DEB_SOURCE_DIR)
17+
-rm -rf $(DEB_SOURCE_DIR) Makefile.eu
1618
-rm *deb
1719
-rm *gz
1820

@@ -22,21 +24,29 @@ copy-files :
2224

2325
source :
2426

25-
update :
26-
hg archive $(DEB_SOURCE_DIR)
27+
update :
28+
mkdir -p euphoria/debian >/dev/null
29+
(cd ../..;git archive --format=tar HEAD ) | tar -x -C euphoria
30+
grep -v 'pdflatex' < euphoria/source/Makefile.gnu | grep -v euphoria.pdf > t
31+
echo "pdfdoc-initial :" >> t
32+
echo "\ttouch build/euphoria.pdf" >> t
33+
echo "pdfdoc :" >> t
34+
echo "\ttouch build/euphoria.pdf" >> t
35+
mv t euphoria/source/Makefile.gnu
2736
cp Makefile.fake $(DEB_SOURCE_DIR)/Makefile
28-
-rm -r $(DEB_SOURCE_DIR)/debian
29-
-mkdir $(DEB_SOURCE_DIR)/debian
30-
-cp rules $(DEB_SOURCE_DIR)/debian
31-
-cp postinst $(DEB_SOURCE_DIR)/debian
32-
-cp prerm $(DEB_SOURCE_DIR)/debian
33-
-cp $(DEB_SOURCE_DIR)/docs/man/*.1 $(DEB_SOURCE_DIR)/debian
34-
-sed s/%arch%/$(ARCH)/ control > $(DEB_SOURCE_DIR)/debian/control
35-
-cp changelog $(DEB_SOURCE_DIR)/debian
36-
-cp copyright $(DEB_SOURCE_DIR)/debian
37-
-rm $(DEB_SOURCE_DIR)/*stamp
38-
-cp euphoria-manual $(DEB_SOURCE_DIR)/debian
39-
-echo 7 > $(DEB_SOURCE_DIR)/debian/compat
37+
-rm -fr $(DEB_SOURCE_DIR)/debian/*
38+
cp Makefile.eu $(DEB_SOURCE_DIR)/debian/euphoria
39+
cp Makefile.eu $(DEB_SOURCE_DIR)/debian
40+
cp rules $(DEB_SOURCE_DIR)/debian
41+
cp postinst $(DEB_SOURCE_DIR)/debian
42+
cp prerm $(DEB_SOURCE_DIR)/debian
43+
cp $(DEB_SOURCE_DIR)/docs/man/*.1 $(DEB_SOURCE_DIR)/debian
44+
sed s/%arch%/$(ARCH)/ control > $(DEB_SOURCE_DIR)/debian/control
45+
cp changelog $(DEB_SOURCE_DIR)/debian/changelog
46+
cp copyright $(DEB_SOURCE_DIR)/debian
47+
rm -f $(DEB_SOURCE_DIR)/*stamp
48+
cp euphoria-manual $(DEB_SOURCE_DIR)/debian
49+
echo 7 > $(DEB_SOURCE_DIR)/debian/compat
4050
cd $(DEB_SOURCE_DIR)/source && ./configure --prefix /usr $(CONFIG)
4151
echo TARGET: UPDATE - MAKING SOURCE
4252
$(MAKE) -C $(DEB_SOURCE_DIR)/source source
@@ -52,4 +62,4 @@ dh-make : update
5262

5363

5464

55-
.PHONY : clean binclean update dh-make
65+
.PHONY : clean binclean update dh-make

packaging/debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
euphoria (4.2.0) development; urgency=low
2+
3+
* 4.2.0 Release: large enhancements
4+
5+
-- Shawn Pringle <shawn.pringle@gmail.com> Fri, 4 Apr 2025 11:51:50 -0300
6+
17
euphoria (4.0.5) stable; urgency=low
28

39
* 4.0.5 Release: bug fixes and enhancements

packaging/debian/rules

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ export DH_VERBOSE=1
1717
export DH_OPTIONS
1818

1919

20-
include ../Makefile.eu
20+
include Makefile.eu
2121

2222
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
2323
CFLAGS += -O0
2424
else
25-
CFLAGS += -O2
25+
CFLAGS += -O3
2626
endif
2727

2828
configure: configure-stamp
@@ -47,10 +47,7 @@ build-indep: build-indep-stamp
4747
build-indep-stamp: configure-stamp
4848
# Add here commands to compile the indep part of the package.
4949
echo TARGET build-index-stamp
50-
$(MAKE) -C source htmldoc pdfdoc-initial
51-
$(MAKE) -C source pdfdoc-initial
52-
$(MAKE) -C source pdfdoc-initial
53-
$(MAKE) -C source pdfdoc-initial
50+
$(MAKE) -C source htmldoc
5451
touch $@
5552

5653
clean:
@@ -69,7 +66,8 @@ install-indep:
6966
echo TARGET install-indep
7067
dh_testdir
7168
dh_testroot
72-
dh_clean -k -i
69+
dh_clean -k -i
70+
-rm euphoria/debian/euphoria
7371
dh_installdirs -i
7472
# Add here commands to install the indep part of the package into
7573
# debian/<package>-doc.
@@ -81,7 +79,8 @@ install-arch:
8179
dh_testdir
8280
dh_testroot
8381
dh_clean -k -s
84-
dh_installdirs -s
82+
-rm euphoria/debian/euphoria
83+
#dh_installdirs -s
8584
# Add here commands to install the arch part of the package into
8685
# debian/tmp.
8786
$(MAKE) DESTDIR=$(CURDIR)/debian/euphoria install install-docs install-tools

source/Makefile.gnu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ htmldoc : $(BUILDDIR)/html/index.html
809809

810810
pdfdoc : $(BUILDDIR)/euphoria.pdf
811811

812-
$(BUILDDIR)/pdf/euphoria.txt : $(EU_DOC_SOURCE)
812+
$(BUILDDIR)/pdf/euphoria.txt : $(EU_DOC_SOURCE) $(TRUNKDIR)/License.txt
813813
-mkdir -p $(BUILDDIR)/pdf
814814
$(EUDOC) -d PDF --single --strip=2 -a $(TRUNKDIR)/docs/manual.af -o $(CYPBUILDDIR)/pdf/euphoria.txt
815815

0 commit comments

Comments
 (0)