mirror of git://git.2f30.org/morpheus.git
Use .cache instead of .state
This commit is contained in:
parent
f04341d18b
commit
4ce69b26e2
|
@ -1,4 +1,4 @@
|
|||
.state
|
||||
.cache
|
||||
pkgs.mk
|
||||
*.img
|
||||
root
|
||||
|
|
4
mkfile
4
mkfile
|
@ -10,7 +10,7 @@ help:VQ:
|
|||
all world:VQ: $pkgs
|
||||
|
||||
clean:V:
|
||||
rm -f .state/* pkgs.mk
|
||||
rm -f .cache/* pkgs.mk
|
||||
|
||||
fetchpkgs = ${pkgs:%=%-fetch}
|
||||
|
||||
|
@ -18,7 +18,7 @@ fetch-all fetch-world:VQ: ${fetchpkgs}
|
|||
|
||||
# generate a pkgs.mk file with the tarkets for all packages in pkgs/
|
||||
`{ mkdir -p src }
|
||||
`{ mkdir -p .state }
|
||||
`{ mkdir -p .cache }
|
||||
`{ echo '# auto-generated file, do not edit' > pkgs.mk }
|
||||
`{ cd pkgs && for pkg in *; do cat $pkg ../stuff/fetch-pkg.mk |\
|
||||
sed -e "s,^build:,$pkg:QP./stuff/cmp-pkgs: $pkg-fetch pkgs/$pkg," |\
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
pkg=`echo $1 | sed -e 's,-fetch$,,'`
|
||||
cmp -s .state/$1 pkgs/$pkg
|
||||
cmp -s .cache/$1 pkgs/$pkg
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
cmp -s .state/$1 pkgs/$1
|
||||
cmp -s .cache/$1 pkgs/$1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
cp $top/pkgs/$target $top/.state/$target
|
||||
cp $top/pkgs/$target $top/.cache/$target
|
||||
|
||||
fetch-target:QP./stuff/cmp-fetch: .
|
||||
cd src
|
||||
|
@ -22,5 +22,5 @@ fetch-target:QP./stuff/cmp-fetch: .
|
|||
tar -xJf $file
|
||||
fi
|
||||
fi
|
||||
cp $top/pkgs/$pkg $top/.state/$target
|
||||
cp $top/pkgs/$pkg $top/.cache/$target
|
||||
|
||||
|
|
Loading…
Reference in New Issue