diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2009-04-01 16:28:46 +0200 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2009-04-01 16:28:46 +0200 |
commit | 28c8da9787ee7fc592e9ed396bb69a98a71a3f6e (patch) | |
tree | d91836d49e62b7c9c1b1ab5fdba5c0160947ada4 | |
parent | dc678aa4a725cc41b048ecda0edb42a1bb8bd3df (diff) | |
download | git-rpm-28c8da9787ee7fc592e9ed396bb69a98a71a3f6e.tar.gz git-rpm-28c8da9787ee7fc592e9ed396bb69a98a71a3f6e.tar.xz git-rpm-28c8da9787ee7fc592e9ed396bb69a98a71a3f6e.zip |
Automatic package name detection
-rw-r--r-- | GNUmakefile | 5 | ||||
-rw-r--r-- | README | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/GNUmakefile b/GNUmakefile index 3ca24ef..a019300 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,3 +1,6 @@ -NAME = changeme +# Change the following to an explicit package name if you want +# the spec file name to be different from the directory name +# for some reason. +NAME = $(notdir $(realpath .)) dummy := $(shell test -f git-rpm/git-rpm.mk || git submodule update --init) include git-rpm/git-rpm.mk @@ -1,8 +1,7 @@ # How to use this file: -# 0. run "git init" -# 1. git submodule add 'git://fedorapeople.org/~ndim/git-rpm.git' git-rpm -# 2. copy git-rpm/GNUmakefile to your top directory: -# $ cp git-rpm/GNUmakefile . +# 0. $ mkdir mypkg && cd mypkg && git init +# 1. $ git submodule add 'git://fedorapeople.org/~ndim/git-rpm.git' git-rpm +# 2. $ ln -s git-rpm/GNUmakefile . # 3. write mypkg.spec, and fill in at least the Summary: line # 4. run "make setup" to created the upload directory to the server # 5. write mypkg.spec, patches, Source: files, etc. |