summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2023-06-08 13:17:43 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2023-06-08 13:17:43 +0200
commitd3d19c4fbb0fc632624d3625d5db322500a1fe8b (patch)
tree1422f6cc6c8870c5450dc9ef0fdd96174d65169e /Makefile
parent86492306de908f13d5e43921fec1406ae53f7e37 (diff)
downloaddevtools-d3d19c4fbb0fc632624d3625d5db322500a1fe8b.tar.xz
some temporary patching for [staging] and [testing] repos
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 18 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a4d5b4d..a545b82 100644
--- a/Makefile
+++ b/Makefile
@@ -172,7 +172,12 @@ $(BUILDDIR)/pacman.conf.d/%-i486.conf: config/pacman/%.conf
@sed " \
s,/mirrorlist\$$,\032,; \
/^Architecture = / s/^.*\$$/Architecture = i486/; \
- " "$<" > "$@"
+ " "$<" > /tmp/$$.tmp
+ @sed -i '/^\[core-staging\]/ i \[staging\]\nInclude = \/etc\/pacman.d\/mirrorlist32\n' /tmp/$$.tmp
+ @sed -i '/^\[extra-staging\]/ i \[staging\]\nInclude = \/etc\/pacman.d\/mirrorlist32\n' /tmp/$$.tmp
+ @sed -i '/^\[core-testing\]/ i \[testing\]\nInclude = \/etc\/pacman.d\/mirrorlist32\n' /tmp/$$.tmp
+ @sed -i '/^\[extra-testing\]/ i \[testing\]\nInclude = \/etc\/pacman.d\/mirrorlist32\n' /tmp/$$.tmp
+ @cat /tmp/$$.tmp > "$@"
$(BUILDDIR)/pacman.conf.d/%-i686.conf: config/pacman/%.conf
@echo "GEN $(notdir $@)"
@@ -180,7 +185,12 @@ $(BUILDDIR)/pacman.conf.d/%-i686.conf: config/pacman/%.conf
@sed " \
s,/mirrorlist\$$,\032,; \
/^Architecture = / s/^.*$$/Architecture = i686/ \
- " "$<" > "$@"
+ " "$<" > /tmp/$$.tmp
+ @sed -i '/^\[core-staging\]/ i \[staging\]\nInclude = \/etc\/pacman.d\/mirrorlist32\n' /tmp/$$.tmp
+ @sed -i '/^\[extra-staging\]/ i \[staging\]\nInclude = \/etc\/pacman.d\/mirrorlist32\n' /tmp/$$.tmp
+ @sed -i '/^\[core-testing\]/ i \[testing\]\nInclude = \/etc\/pacman.d\/mirrorlist32\n' /tmp/$$.tmp
+ @sed -i '/^\[extra-testing\]/ i \[testing\]\nInclude = \/etc\/pacman.d\/mirrorlist32\n' /tmp/$$.tmp
+ @cat /tmp/$$.tmp > "$@"
$(BUILDDIR)/pacman.conf.d/%-pentium4.conf: config/pacman/%.conf
@echo "GEN $(notdir $@)"
@@ -188,7 +198,12 @@ $(BUILDDIR)/pacman.conf.d/%-pentium4.conf: config/pacman/%.conf
@sed " \
s,/mirrorlist\$$,\032,; \
/^Architecture = / s/^.*$$/Architecture = pentium4/ \
- " "$<" > "$@"
+ " "$<" > /tmp/$$.tmp
+ @sed -i '/^\[core-staging\]/ i \[staging\]\nInclude = \/etc\/pacman.d\/mirrorlist32\n' /tmp/$$.tmp
+ @sed -i '/^\[extra-staging\]/ i \[staging\]\nInclude = \/etc\/pacman.d\/mirrorlist32\n' /tmp/$$.tmp
+ @sed -i '/^\[core-testing\]/ i \[testing\]\nInclude = \/etc\/pacman.d\/mirrorlist32\n' /tmp/$$.tmp
+ @sed -i '/^\[extra-testing\]/ i \[testing\]\nInclude = \/etc\/pacman.d\/mirrorlist32\n' /tmp/$$.tmp
+ @cat /tmp/$$.tmp > "$@"
define buildInScript
$(1)/%: $(2)%$(3)