Commit 879b3a94 authored by John van Groningen's avatar John van Groningen
Browse files

in clean-classic for linux-x86, linux_arm64, linux_arm32, linux_thumb and...

in clean-classic for linux-x86, linux_arm64, linux_arm32, linux_thumb and macos-x64 add platform examples, move small examples to SmallExamples directory, in linux_arm32 and linux_thumb remove txt/Makefile_examples and txt/run_all_programs, use Makefile and run_all_programs from clean-libraries repository instead
parent 75924781
Pipeline #50159 passed with stage
in 16 minutes and 16 seconds
(cd git/clean-libraries; git checkout master Examples/Small\ Examples)
mkdir -p clean-libraries/Examples
mv git/clean-libraries/Examples/Small\ Examples clean-libraries/Examples
mkdir -p clean/examples
mkdir -p clean/examples/SmallExamples
for a in acker copyfile e fsieve hamming invperm lqueen mulmat nfib pascal reverse revtwice \
rfib sieve squeen str_arit stwice tak twice war_seq;
do cp clean-libraries/Examples/Small\ Examples/$a.icl clean/examples;
do cp clean-libraries/Examples/Small\ Examples/$a.icl clean/examples/SmallExamples
done
cp clean-classic/linux-arm32/txt/run_all_programs clean/examples
cp clean-classic/linux-arm32/txt/Makefile_examples clean/examples/Makefile
cp clean-libraries/Examples/Small\ Examples/run_all_programs clean/examples/SmallExamples
cp clean-libraries/Examples/Small\ Examples/Makefile clean/examples/SmallExamples/Makefile
mkdir -p clean/examples/PlatformExamples/socket
mkdir -p clean/examples/PlatformExamples/WebPM/icons
cp clean-platform/src/examples/*.* clean/examples/PlatformExamples
cp clean-platform/src/examples/socket/*.icl clean/examples/PlatformExamples/socket
cp clean-platform/src/examples/WebPM/*.* clean/examples/PlatformExamples/WebPM
cp clean-platform/src/examples/WebPM/icons/*.* clean/examples/PlatformExamples/WebPM/icons
cat > clean/examples/PlatformExamples/make.sh<< EOF
export PATH=../../bin:\$PATH
clm -nt -IL Platform IPLookup -o IPLookup
clm -nt -IL Platform ProcessDemo -o ProcessDemo
clm -nt -IL Platform MapDemo -o MapDemo
clm -nt -IL Platform SQLDbDemo -o SQLDbDemo
clm -aC,-h,600m -nt -IL Platform -IL TCPIP WebDemo -o WebDemo
EOF
chmod +x clean/examples/PlatformExamples/make.sh
cat > clean/examples/PlatformExamples/WebPM/make.sh<< EOF
export PATH=../../../bin:\$PATH
clm -aC,-h,600m -nt -IL Platform -IL TCPIP PM -o PM
EOF
chmod +x clean/examples/PlatformExamples/WebPM/make.sh
cat > clean/examples/PlatformExamples/socket/make.sh<< EOF
export PATH=../../../bin:\$PATH
clm -nt -IL Platform client -o client
clm -nt -IL Platform server -o server
EOF
chmod +x clean/examples/PlatformExamples/socket/make.sh
# Makefile for the Clean examples programs
#
#
# make (= make all):
# compiles examples
#
# make <name>:
# compile one example
#
# make cleanup:
# remove all files that can be recreated
#
CLEAN_EXAMPLES = \
hamming pascal squeen war_seq acker invperm reverse \
str_arit copyfile lqueen revtwice stwice e mulmat \
rfib tak fsieve nfib sieve twice
all: $(CLEAN_EXAMPLES)
revtwice: revtwice.icl
$(CLM) $(CLMFLAGS) -h 4m -s 2m revtwice -o revtwice
twice: twice.icl
$(CLM) $(CLMFLAGS) -h 4m -s 2m twice -o twice
pascal: pascal.icl
$(CLM) $(CLMFLAGS) -b pascal -o pascal
copyfile: copyfile.icl
$(CLM) $(CLMFLAGS) -nr copyfile -o copyfile
#
# Cleanup
#
cleanup:
$(RM) $(CLEAN_EXAMPLES)
$(RM) $(CLEAN_EXAMPLES:%=Clean\ System\ Files/%.abc)
$(RM) $(CLEAN_EXAMPLES:%=Clean\ System\ Files/%.o)
#
# Commands
#
CLM = clm
CLMFLAGS = -nw
.SUFFIXES: .icl
.icl:
$(CLM) $(CLMFLAGS) $* -o $*
make all
./hamming
./pascal
./squeen
./war_seq
./acker
./invperm
./reverse
./str_arit
./copyfile
./lqueen
./revtwice
./stwice
./e
./mulmat
./rfib
./tak
./fsieve
./nfib
./sieve
./twice
......@@ -2,10 +2,40 @@
mkdir -p clean-libraries/Examples
mv git/clean-libraries/Examples/Small\ Examples clean-libraries/Examples
mkdir -p clean/examples
mkdir -p clean/examples/SmallExamples
for a in acker copyfile e fsieve hamming invperm lqueen mulmat nfib pascal reverse revtwice \
rfib sieve squeen str_arit stwice tak twice war_seq;
do cp clean-libraries/Examples/Small\ Examples/$a.icl clean/examples;
do cp clean-libraries/Examples/Small\ Examples/$a.icl clean/examples/SmallExamples
done
cp clean-libraries/Examples/Small\ Examples/run_all_programs clean/examples
cp clean-libraries/Examples/Small\ Examples/Makefile clean/examples/Makefile
cp clean-libraries/Examples/Small\ Examples/run_all_programs clean/examples/SmallExamples
cp clean-libraries/Examples/Small\ Examples/Makefile clean/examples/SmallExamples/Makefile
mkdir -p clean/examples/PlatformExamples/socket
mkdir -p clean/examples/PlatformExamples/WebPM/icons
cp clean-platform/src/examples/*.* clean/examples/PlatformExamples
cp clean-platform/src/examples/socket/*.icl clean/examples/PlatformExamples/socket
cp clean-platform/src/examples/WebPM/*.* clean/examples/PlatformExamples/WebPM
cp clean-platform/src/examples/WebPM/icons/*.* clean/examples/PlatformExamples/WebPM/icons
cat > clean/examples/PlatformExamples/make.sh<< EOF
export PATH=../../bin:\$PATH
clm -nt -IL Platform IPLookup -o IPLookup
clm -nt -IL Platform ProcessDemo -o ProcessDemo
clm -nt -IL Platform MapDemo -o MapDemo
clm -nt -IL Platform SQLDbDemo -o SQLDbDemo
clm -aC,-h,600m -nt -IL Platform -IL TCPIP WebDemo -o WebDemo
EOF
chmod +x clean/examples/PlatformExamples/make.sh
cat > clean/examples/PlatformExamples/WebPM/make.sh<< EOF
export PATH=../../../bin:\$PATH
clm -aC,-h,600m -nt -IL Platform -IL TCPIP PM -o PM
EOF
chmod +x clean/examples/PlatformExamples/WebPM/make.sh
cat > clean/examples/PlatformExamples/socket/make.sh<< EOF
export PATH=../../../bin:\$PATH
clm -nt -IL Platform client -o client
clm -nt -IL Platform server -o server
EOF
chmod +x clean/examples/PlatformExamples/socket/make.sh
(cd git/clean-libraries; git checkout master Examples/Small\ Examples)
mkdir -p clean-libraries/Examples
mv git/clean-libraries/Examples/Small\ Examples clean-libraries/Examples
mkdir -p clean/examples
mkdir -p clean/examples/SmallExamples
for a in acker copyfile e fsieve hamming invperm lqueen mulmat nfib pascal reverse revtwice \
rfib sieve squeen str_arit stwice tak twice war_seq;
do cp clean-libraries/Examples/Small\ Examples/$a.icl clean/examples;
do cp clean-libraries/Examples/Small\ Examples/$a.icl clean/examples/SmallExamples
done
cp clean-classic/linux-thumb/txt/run_all_programs clean/examples
cp clean-classic/linux-thumb/txt/Makefile_examples clean/examples/Makefile
cp clean-libraries/Examples/Small\ Examples/run_all_programs clean/examples/SmallExamples
cp clean-libraries/Examples/Small\ Examples/Makefile clean/examples/SmallExamples/Makefile
mkdir -p clean/examples/PlatformExamples/socket
mkdir -p clean/examples/PlatformExamples/WebPM/icons
cp clean-platform/src/examples/*.* clean/examples/PlatformExamples
cp clean-platform/src/examples/socket/*.icl clean/examples/PlatformExamples/socket
cp clean-platform/src/examples/WebPM/*.* clean/examples/PlatformExamples/WebPM
cp clean-platform/src/examples/WebPM/icons/*.* clean/examples/PlatformExamples/WebPM/icons
cat > clean/examples/PlatformExamples/make.sh<< EOF
export PATH=../../bin:\$PATH
clm -nt -IL Platform IPLookup -o IPLookup
clm -nt -IL Platform ProcessDemo -o ProcessDemo
clm -nt -IL Platform MapDemo -o MapDemo
clm -nt -IL Platform SQLDbDemo -o SQLDbDemo
clm -aC,-h,600m -nt -IL Platform -IL TCPIP WebDemo -o WebDemo
EOF
chmod +x clean/examples/PlatformExamples/make.sh
cat > clean/examples/PlatformExamples/WebPM/make.sh<< EOF
export PATH=../../../bin:\$PATH
clm -aC,-h,600m -nt -IL Platform -IL TCPIP PM -o PM
EOF
chmod +x clean/examples/PlatformExamples/WebPM/make.sh
cat > clean/examples/PlatformExamples/socket/make.sh<< EOF
export PATH=../../../bin:\$PATH
clm -nt -IL Platform client -o client
clm -nt -IL Platform server -o server
EOF
chmod +x clean/examples/PlatformExamples/socket/make.sh
# Makefile for the Clean examples programs
#
#
# make (= make all):
# compiles examples
#
# make <name>:
# compile one example
#
# make cleanup:
# remove all files that can be recreated
#
CLEAN_EXAMPLES = \
hamming pascal squeen war_seq acker invperm reverse \
str_arit copyfile lqueen revtwice stwice e mulmat \
rfib tak fsieve nfib sieve twice
all: $(CLEAN_EXAMPLES)
revtwice: revtwice.icl
$(CLM) $(CLMFLAGS) -h 4m -s 2m revtwice -o revtwice
twice: twice.icl
$(CLM) $(CLMFLAGS) -h 4m -s 2m twice -o twice
pascal: pascal.icl
$(CLM) $(CLMFLAGS) -b pascal -o pascal
copyfile: copyfile.icl
$(CLM) $(CLMFLAGS) -nr copyfile -o copyfile
#
# Cleanup
#
cleanup:
$(RM) $(CLEAN_EXAMPLES)
$(RM) $(CLEAN_EXAMPLES:%=Clean\ System\ Files/%.abc)
$(RM) $(CLEAN_EXAMPLES:%=Clean\ System\ Files/%.o)
#
# Commands
#
CLM = clm
CLMFLAGS = -nw
.SUFFIXES: .icl
.icl:
$(CLM) $(CLMFLAGS) $* -o $*
make all
./hamming
./pascal
./squeen
./war_seq
./acker
./invperm
./reverse
./str_arit
./copyfile
./lqueen
./revtwice
./stwice
./e
./mulmat
./rfib
./tak
./fsieve
./nfib
./sieve
./twice
......@@ -2,10 +2,40 @@
mkdir -p clean-libraries/Examples
mv git/clean-libraries/Examples/Small\ Examples clean-libraries/Examples
mkdir -p clean/examples
mkdir -p clean/examples/SmallExamples
for a in acker copyfile e fsieve hamming invperm lqueen mulmat nfib pascal reverse revtwice \
rfib sieve squeen str_arit stwice tak twice war_seq;
do cp clean-libraries/Examples/Small\ Examples/$a.icl clean/examples;
do cp clean-libraries/Examples/Small\ Examples/$a.icl clean/examples/SmallExamples
done
cp clean-libraries/Examples/Small\ Examples/run_all_programs clean/examples
cp clean-libraries/Examples/Small\ Examples/Makefile clean/examples/Makefile
cp clean-libraries/Examples/Small\ Examples/run_all_programs clean/examples/SmallExamples
cp clean-libraries/Examples/Small\ Examples/Makefile clean/examples/SmallExamples/Makefile
mkdir -p clean/examples/PlatformExamples/socket
mkdir -p clean/examples/PlatformExamples/WebPM/icons
cp clean-platform/src/examples/*.* clean/examples/PlatformExamples
cp clean-platform/src/examples/socket/*.icl clean/examples/PlatformExamples/socket
cp clean-platform/src/examples/WebPM/*.* clean/examples/PlatformExamples/WebPM
cp clean-platform/src/examples/WebPM/icons/*.* clean/examples/PlatformExamples/WebPM/icons
cat > clean/examples/PlatformExamples/make.sh<< EOF
export PATH=../../bin:\$PATH
clm -nt -IL Platform IPLookup -o IPLookup
clm -nt -IL Platform ProcessDemo -o ProcessDemo
clm -nt -IL Platform MapDemo -o MapDemo
clm -nt -IL Platform SQLDbDemo -o SQLDbDemo
clm -aC,-h,600m -nt -IL Platform -IL TCPIP WebDemo -o WebDemo
EOF
chmod +x clean/examples/PlatformExamples/make.sh
cat > clean/examples/PlatformExamples/WebPM/make.sh<< EOF
export PATH=../../../bin:\$PATH
clm -aC,-h,600m -nt -IL Platform -IL TCPIP PM -o PM
EOF
chmod +x clean/examples/PlatformExamples/WebPM/make.sh
cat > clean/examples/PlatformExamples/socket/make.sh<< EOF
export PATH=../../../bin:\$PATH
clm -nt -IL Platform client -o client
clm -nt -IL Platform server -o server
EOF
chmod +x clean/examples/PlatformExamples/socket/make.sh
......@@ -2,10 +2,40 @@
mkdir -p clean-libraries/Examples
mv git/clean-libraries/Examples/Small\ Examples clean-libraries/Examples
mkdir -p clean/examples
mkdir -p clean/examples/SmallExamples
for a in acker copyfile e fsieve hamming invperm lqueen mulmat nfib pascal reverse revtwice \
rfib sieve squeen str_arit stwice tak twice war_seq;
do cp clean-libraries/Examples/Small\ Examples/$a.icl clean/examples;
do cp clean-libraries/Examples/Small\ Examples/$a.icl clean/examples/SmallExamples
done
cp clean-libraries/Examples/Small\ Examples/run_all_programs clean/examples
cp clean-libraries/Examples/Small\ Examples/Makefile clean/examples/Makefile
cp clean-libraries/Examples/Small\ Examples/run_all_programs clean/examples/SmallExamples
cp clean-libraries/Examples/Small\ Examples/Makefile clean/examples/SmallExamples/Makefile
mkdir -p clean/examples/PlatformExamples/socket
mkdir -p clean/examples/PlatformExamples/WebPM/icons
cp clean-platform/src/examples/*.* clean/examples/PlatformExamples
cp clean-platform/src/examples/socket/*.icl clean/examples/PlatformExamples/socket
cp clean-platform/src/examples/WebPM/*.* clean/examples/PlatformExamples/WebPM
cp clean-platform/src/examples/WebPM/icons/*.* clean/examples/PlatformExamples/WebPM/icons
cat > clean/examples/PlatformExamples/make.sh<< EOF
export PATH=../../bin:\$PATH
clm -nt -IL Platform IPLookup -o IPLookup
clm -nt -IL Platform ProcessDemo -o ProcessDemo
clm -nt -IL Platform MapDemo -o MapDemo
clm -nt -IL Platform SQLDbDemo -o SQLDbDemo
clm -aC,-h,600m -nt -IL Platform -IL TCPIP WebDemo -o WebDemo
EOF
chmod +x clean/examples/PlatformExamples/make.sh
cat > clean/examples/PlatformExamples/WebPM/make.sh<< EOF
export PATH=../../../bin:\$PATH
clm -aC,-h,600m -nt -IL Platform -IL TCPIP PM -o PM
EOF
chmod +x clean/examples/PlatformExamples/WebPM/make.sh
cat > clean/examples/PlatformExamples/socket/make.sh<< EOF
export PATH=../../../bin:\$PATH
clm -nt -IL Platform client -o client
clm -nt -IL Platform server -o server
EOF
chmod +x clean/examples/PlatformExamples/socket/make.sh
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment