~kaction/config

db8ce99798836972b422d93d7ad0bf13fe21258d — Dmitry Bogatov 8 months ago fb2cfdb
nix-sys: add rule to generate .gitignore
3 files changed, 14 insertions(+), 3 deletions(-)

D system-v2/nix-sys/.gitignore
A system-v2/nix-sys/.gitignore.do
M system-v2/nix-sys/all.do
D system-v2/nix-sys/.gitignore => system-v2/nix-sys/.gitignore +0 -2
@@ 1,2 0,0 @@
.lock*
conf/*

A system-v2/nix-sys/.gitignore.do => system-v2/nix-sys/.gitignore.do +13 -0
@@ 0,0 1,13 @@
#!/bin/sh -eu

# git does not recognize ./foo as pattern matching file named "foo".
redo-targets | sed 's/..//' > $3
cat << EOF >> $3
.gitignore
.dep.*
.lock.*
index.cdb
config.h
conf/*
EOF


M system-v2/nix-sys/all.do => system-v2/nix-sys/all.do +1 -1
@@ 1,2 1,2 @@
#!/bin/sh
exec redo-ifchange nix-sys
exec redo-ifchange nix-sys .gitignore