Browse Source
Many derivatives make quiet a few simple changes to apt introducing silly diffs just to change examples and co making it harder for them to update apt and harder for us to merge real changes back. First stop: doc/examples/sources.listdebian/1.8.y

9 changed files with 89 additions and 7 deletions
@ -0,0 +1,11 @@ |
|||
# -*- make -*-
|
|||
BASE=../.. |
|||
SUBDIR=vendor/debian |
|||
|
|||
# Bring in the default rules
|
|||
include ../../buildlib/defaults.mak |
|||
|
|||
doc: sources.list |
|||
|
|||
sources.list: sources.list.in ../../doc/apt-verbatim.ent |
|||
sed -e 's#&stable-codename;#$(shell grep --max-count=1 '^<!ENTITY stable-codename "' ../../doc/apt-verbatim.ent | cut -d'"' -f 2)#g' $^ > $@ |
@ -0,0 +1,42 @@ |
|||
# -*- make -*-
|
|||
BASE=.. |
|||
SUBDIR=vendor |
|||
|
|||
# Bring in the default rules
|
|||
include ../buildlib/defaults.mak |
|||
|
|||
all headers library binary program doc manpages debiandoc test update-po startup dirs: current |
|||
all: all/subdirs |
|||
binary: binary/subdirs |
|||
doc: doc/subdirs |
|||
clean: clean/subdirs |
|||
veryclean: veryclean/subdirs |
|||
dirs: dirs/subdirs |
|||
|
|||
all/subdirs binary/subdirs doc/subdirs dirs/subdirs: |
|||
$(MAKE) -C current $(patsubst %/subdirs,%,$@) |
|||
|
|||
clean/subdirs veryclean/subdirs: |
|||
test ! -e current || $(MAKE) -C current $(patsubst %/subdirs,%,$@) |
|||
|
|||
current: |
|||
rm -f $@ |
|||
# search for an exact match to use the correct sources.list example |
|||
find -mindepth 1 -maxdepth 1 -type d | cut -d'/' -f 2 | while read DISTRO; do \
|
|||
if dpkg-vendor --is $$DISTRO; then \
|
|||
ln -s $$DISTRO $@; \
|
|||
break; \
|
|||
fi; \
|
|||
done |
|||
# if we haven't found a specific, look for a deriving in hardcoded order |
|||
test -e $@ || \
|
|||
(dpkg-vendor --derives-from ubuntu && cp ln -s ubuntu $@ ) || \
|
|||
ln -s debian $@ |
|||
|
|||
.PHONY: clean veryclean all binary vendor |
|||
|
|||
clean: clean/current |
|||
|
|||
clean/current: |
|||
test ! -e current || $(MAKE) -C current clean |
|||
rm -f current |
@ -0,0 +1,11 @@ |
|||
# -*- make -*-
|
|||
BASE=../.. |
|||
SUBDIR=vendor/ubuntu |
|||
|
|||
# Bring in the default rules
|
|||
include ../../buildlib/defaults.mak |
|||
|
|||
doc: sources.list |
|||
|
|||
sources.list: sources.list.in ../../doc/apt-verbatim.ent |
|||
sed -e 's#&ubuntu-codename;#$(shell grep --max-count=1 '^<!ENTITY ubuntu-codename "' ../../doc/apt-verbatim.ent | cut -d'"' -f 2)#g' $^ > $@ |
@ -0,0 +1,10 @@ |
|||
# See sources.list(5) manpage for more information |
|||
# Remember that CD-ROMs, DVDs and such are managed through the apt-cdrom tool. |
|||
deb http://us.archive.ubuntu.com/ubuntu &ubuntu-codename; main restricted |
|||
deb-src http://us.archive.ubuntu.com/ubuntu &ubuntu-codename; main restricted |
|||
|
|||
deb http://security.ubuntu.com/ubuntu &ubuntu-codename;-security main restricted |
|||
deb-src http://security.ubuntu.com/ubuntu &ubuntu-codename;-security main restricted |
|||
|
|||
deb http://us.archive.ubuntu.com/ubuntu &ubuntu-codename;-updates main restricted |
|||
deb-src http://us.archive.ubuntu.com/ubuntu &ubuntu-codename;-updates main restricted |
Loading…
Reference in new issue