"Fossies" - the Fresh Open Source Software Archive

Member "stress-ng-0.09.56/snap/Makefile" (15 Mar 2019, 525 Bytes) of package /linux/privat/stress-ng-0.09.56.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 VERSION=$(shell git tag | tail -1 | cut -c2-)
    2 COMMITS=$(shell git log --oneline | wc -l)
    3 SHA=$(shell git log -1 --oneline | cut -d' ' -f1)
    4 DATE=$(shell date +'%Y%m%d')
    5 V=$(VERSION)-$(DATE)-$(COMMITS)-$(SHA)
    6 
    7 all: set_version
    8 	snapcraft
    9 
   10 set_version:
   11 	cat snapcraft.yaml | sed 's/version: .*/version: $(V)/' > snapcraft-tmp.yaml
   12 	mv snapcraft-tmp.yaml snapcraft.yaml
   13 
   14 clean:
   15 	rm -rf setup *.snap
   16 	snapcraft clean
   17 	cat snapcraft.yaml | sed 's/version: .*/version: 0/' > snapcraft-tmp.yaml
   18 	mv snapcraft-tmp.yaml snapcraft.yaml