aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
blob: de024aeaa5c225b5dc0dbea32d53d9b845ed9279 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
# Create the build system.

set -e -x

# Generate stubs for translations.
langs=`find po/doc -type f -name 'guix-manual*.po' \
        | sed -e 's,.*/guix-manual\.,,;s,\.po$,,'`
for lang in ${langs}; do
    if [ ! -e "doc/guix.${lang}.texi" ]; then
	echo "@setfilename guix.${lang}.info" > "doc/guix.${lang}.texi"
	echo "@include version-${lang}.texi" >> "doc/guix.${lang}.texi"
	# Ensure .po file is newer.
	touch "po/doc/guix-manual.${lang}.po"
    fi
done
langs=`find po/doc -type f -name 'guix-cookbook*.po' \
        | sed -e 's,.*/guix-cookbook\.,,;s,\.po$,,'`
for lang in ${langs}; do
    if [ ! -e "doc/guix-cookbook.${lang}.texi" ]; then
	echo "@setfilename guix-cookbook.${lang}.info" > "doc/guix-cookbook.${lang}.texi"
	# Ensure .po file is newer.
	touch "po/doc/guix-cookbook.${lang}.po"
    fi
done

exec autoreconf -vfi
onfig) (source-module-closure '((gnu system file-systems)))))) (test-equal "does not pull (gnu packages …)" ;; Same story: (gnu packages …) should not be pulled. #f (find (match-lambda (('gnu 'packages _ ..1) #t) (_ #f)) (source-module-closure '((gnu system file-systems))))) (test-equal "file-system-options->alist" '("autodefrag" ("subvol" . "home") ("compress" . "lzo")) (file-system-options->alist "autodefrag,subvol=home,compress=lzo")) (test-equal "file-system-options->alist (#f)" '() (file-system-options->alist #f)) (test-equal "alist->file-system-options" "autodefrag,subvol=root,compress=lzo" (alist->file-system-options '("autodefrag" ("subvol" . "root") ("compress" . "lzo")))) (test-equal "alist->file-system-options (null)" #f (alist->file-system-options '())) ;;; ;;; Btrfs related. ;;; (define %btrfs-root-subvolume (file-system (device (file-system-label "btrfs-pool")) (mount-point "/") (type "btrfs") (options "subvol=rootfs,compress=zstd"))) (define %btrfs-store-subvolid (file-system (device (file-system-label "btrfs-pool")) (mount-point "/gnu/store") (type "btrfs") (options "subvolid=10,compress=zstd") (dependencies (list %btrfs-root-subvolume)))) (define %btrfs-store-subvolume (file-system (device (file-system-label "btrfs-pool")) (mount-point "/gnu/store") (type "btrfs") (options "subvol=/some/nested/file/name") (dependencies (list %btrfs-root-subvolume)))) (test-assert "btrfs-subvolume? (subvol)" (btrfs-subvolume? %btrfs-root-subvolume)) (test-assert "btrfs-subvolume? (subvolid)" (btrfs-subvolume? %btrfs-store-subvolid)) (test-equal "btrfs-store-subvolume-file-name" "/some/nested/file/name" (parameterize ((%store-prefix "/gnu/store")) (btrfs-store-subvolume-file-name (list %btrfs-root-subvolume %btrfs-store-subvolume)))) (test-error "btrfs-store-subvolume-file-name (subvolid)" (parameterize ((%store-prefix "/gnu/store")) (btrfs-store-subvolume-file-name (list %btrfs-root-subvolume %btrfs-store-subvolid)))) (test-end)