git.annexia.org
/
goals.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stdlib/fedora: Use rpmdev-bumpspec -r flag for < Rawhide builds.
[goals.git]
/
Goalfile.in
diff --git
a/Goalfile.in
b/Goalfile.in
index
8f8a322
..
711016e
100644
(file)
--- a/
Goalfile.in
+++ b/
Goalfile.in
@@
-179,10
+179,14
@@
goal install = {
# exec_prefix die die die
bindir="@prefix@/bin"
datadir="@prefix@/share"
# exec_prefix die die die
bindir="@prefix@/bin"
datadir="@prefix@/share"
+ mandir="$datadir/man"
mkdir -p %DESTDIR"$bindir"
mkdir -p %DESTDIR"$bindir"
- mkdir -p %DESTDIR"$datadir/goals"
+ mkdir -p %DESTDIR"$datadir/goals/stdlib"
+ mkdir -p %DESTDIR"$mandir/man1" %DESTDIR"$mandir/man5"
install src/goals %DESTDIR"$bindir" -m 0755
install src/goals %DESTDIR"$bindir" -m 0755
- install %stdlibfiles %DESTDIR"$datadir"/goals -m 644
+ install %stdlibfiles %DESTDIR"$datadir"/goals/stdlib -m 644
+ install man/*.1 %DESTDIR"$mandir"/man1/ -m 644
+ install man/*.5 %DESTDIR"$mandir"/man5/ -m 644
}
#----------------------------------------------------------------------
}
#----------------------------------------------------------------------
@@
-218,10
+222,13
@@
let distfiles = [
".gitignore",
"COPYING",
"Goalfile.in",
".gitignore",
"COPYING",
"Goalfile.in",
+ "Makefile.am",
"Makefile.in",
"README",
"TODO",
"Makefile.in",
"README",
"TODO",
+ "aclocal.m4",
"autogen.sh",
"autogen.sh",
+ "compile",
"config.h.in",
"configure",
"configure.ac",
"config.h.in",
"configure",
"configure.ac",
@@
-229,6
+236,7
@@
let distfiles = [
"goals.spec.in",
"install-sh",
"m4/ocaml.m4",
"goals.spec.in",
"install-sh",
"m4/ocaml.m4",
+ "missing",
"run.in",
"src/.depend",
sources,
"run.in",
"src/.depend",
sources,
@@
-257,6
+265,11
@@
goal dist = "%tarfile" : {
mkdir -p "$d/$subdir"
cp -a "$f" "$d/$subdir"
done
mkdir -p "$d/$subdir"
cp -a "$f" "$d/$subdir"
done
+ # Replace $d/install-sh with a real file
+ if [ -L "$d/install-sh" ]; then
+ rm "$d/install-sh"
+ cp -L "install-sh" "$d/install-sh"
+ fi
tar zcf "$o-t" "$d"
mv "$o-t" "$o"
rm -rf "$d"
tar zcf "$o-t" "$d"
mv "$o-t" "$o"
rm -rf "$d"
@@
-277,6
+290,15
@@
goal distcheck = : dist {
#----------------------------------------------------------------------
# Maintainer rules.
#----------------------------------------------------------------------
# Maintainer rules.
+# Easy way to commit and tag a release.
+goal maintainer-commit = {
+ git commit -a -m "Version "%version"."
+}
+
+goal maintainer-tag = {
+ git tag -a v%version -m "Version "%version -f
+}
+
# Check no files are missing from distfiles above by unpacking the
# distribution tarball and comparing it to git.
goal maintainer-check-extra-dist = : dist @{
# Check no files are missing from distfiles above by unpacking the
# distribution tarball and comparing it to git.
goal maintainer-check-extra-dist = : dist @{
@@
-300,7
+322,7
@@
goal maintainer-release = : dist,
let websitedir = "%HOME/d/websites/people.redhat.com/goals"
let websitedir = "%HOME/d/websites/people.redhat.com/goals"
-# XXX Should actually use the
*url tactic
here.
+# XXX Should actually use the
is-url predicate
here.
goal maintainer-upload = : distcheck {
[ -d %websitedir ]
cp %tarfile %websitedir/files
goal maintainer-upload = : distcheck {
[ -d %websitedir ]
cp %tarfile %websitedir/files