diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..be05f0b --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +DATESTAMP=`date -u +%Y.%m%d.%H%M` + +all: + mkdir $(DATESTAMP) + inventory/inventory.sh $(DATESTAMP) + cd cpu; make diff --git a/inventory/inventory.sh b/inventory/inventory.sh index edd027a..904baf5 100755 --- a/inventory/inventory.sh +++ b/inventory/inventory.sh @@ -1,10 +1,10 @@ #!/bin/bash -STAMP=`date -u +%Y.%m%d.%H%M` +STAMP=$1 echo $STAMP -mkdir $STAMP +# mkdir $STAMP lshw > $STAMP/lshw.out cat /proc/cpuinfo > $STAMP/cpuinfo cat /proc/meminfo > $STAMP/meminfo