morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus
Log | Files | Refs | Submodules | README | LICENSE

commit 4ce69b26e28ed1e3adc3a7933c997c745cd51352
parent f04341d18ba62e9cf29e8df04345df69ee1e5a03
Author: Daniel Bainton <dpb@driftaway.org>
Date:   Sat,  1 Mar 2014 02:07:51 +0200

Use .cache instead of .state

Diffstat:
M.gitignore | 2+-
Mmkfile | 4++--
Mstuff/cmp-fetch | 2+-
Mstuff/cmp-pkgs | 2+-
Mstuff/fetch-pkg.mk | 4++--
5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,4 +1,4 @@ -.state +.cache pkgs.mk *.img root diff --git a/mkfile b/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," |\ diff --git a/stuff/cmp-fetch b/stuff/cmp-fetch @@ -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 diff --git a/stuff/cmp-pkgs b/stuff/cmp-pkgs @@ -1,3 +1,3 @@ #!/bin/sh -cmp -s .state/$1 pkgs/$1 +cmp -s .cache/$1 pkgs/$1 diff --git a/stuff/fetch-pkg.mk b/stuff/fetch-pkg.mk @@ -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