Use .cache instead of .state

This commit is contained in:
Daniel Bainton 2014-03-01 02:07:51 +02:00
parent f04341d18b
commit 4ce69b26e2
5 changed files with 7 additions and 7 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
.state
.cache
pkgs.mk
*.img
root

4
mkfile
View File

@ -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," |\

View File

@ -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

View File

@ -1,3 +1,3 @@
#!/bin/sh
cmp -s .state/$1 pkgs/$1
cmp -s .cache/$1 pkgs/$1

View File

@ -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