index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2016-10-09 22:52:27 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-10-10 10:38:05 +1000 |
commit | 0c99eabd50752310f42ec808c8734a338122ec86 (patch) | |
tree | 499801a8c046001ddab0b11439e9e948b257d726 /contrib/Makefile.am | |
parent | 2e76c184aac74c4848fa5ee092fe54c9954c4054 (diff) |
-rw-r--r-- | contrib/Makefile.am | 95 |
diff --git a/contrib/Makefile.am b/contrib/Makefile.am deleted file mode 100644 index 73df92ed..00000000 --- a/contrib/Makefile.am +++ /dev/null @@ -1,95 +0,0 @@ -# enforce that all scripts have a --help and --version option -AUTOMAKE_OPTIONS = std-options -SUBDIRS= -if WANT_DOC -SUBDIRS += doc -endif - -DIST_SUBDIRS = $(SUBDIRS) - -bin_SCRIPTS = \ - $(OURSCRIPTS) - -BASHSCRIPTS = \ - bacman \ - checkupdates \ - paccache \ - pacdiff \ - paclist \ - paclog-pkglist \ - pacscripts \ - rankmirrors \ - updpkgsums - -OTHERSCRIPTS = \ - pacsearch - -OURSCRIPTS = \ - $(BASHSCRIPTS) \ - $(OTHERSCRIPTS) - -EXTRA_DIST = \ - PKGBUILD.vim \ - bacman.sh.in \ - checkupdates.sh.in \ - paccache.sh.in \ - paclog-pkglist.sh.in \ - pacdiff.sh.in \ - paclist.sh.in \ - pacscripts.sh.in \ - pacsearch.in \ - rankmirrors.sh.in \ - updpkgsums.sh.in \ - vimprojects \ - README - -# Files that should be removed, but which Automake does not know. -MOSTLYCLEANFILES = $(OURSCRIPTS) *.tmp - -if USE_GIT_VERSION -GIT_VERSION := $(shell sh -c 'git describe --abbrev=4 --dirty | sed s/^v//') -REAL_PACKAGE_VERSION = $(GIT_VERSION) -else -REAL_PACKAGE_VERSION = $(PACKAGE_VERSION) -endif - -edit = sed \ - -e 's|@sysconfdir[@]|$(sysconfdir)|g' \ - -e 's|@localstatedir[@]|$(localstatedir)|g' \ - -e 's|@PACKAGE_VERSION[@]|$(REAL_PACKAGE_VERSION)|g' \ - -e 's|@SIZECMD[@]|$(SIZECMD)|g' \ - -e 's|@SCRIPTNAME[@]|$@|g' \ - -e '1s|!/bin/bash|!$(BASH_SHELL)|g' - -$(OTHERSCRIPTS): Makefile - $(AM_V_at)$(RM) $@ $@.tmp - $(AM_V_GEN)$(edit) $(srcdir)/$@.in >$@.tmp - $(AM_V_at)chmod +x,a-w $@.tmp - $(AM_V_at)mv $@.tmp $@ - -$(BASHSCRIPTS): Makefile - $(AM_V_at)$(RM) $@ - $(AM_V_GEN)test -f $(srcdir)/$@.sh.in && m4 -P -I $(srcdir) $(srcdir)/$@.sh.in | $(edit) >$@ - $(AM_V_at)chmod +x,a-w $@ - @$(BASH_SHELL) -O extglob -n $@ - -$(OURFILES): Makefile - $(AM_V_at)$(RM) $@ $@.tmp - $(AM_V_GEN)$(edit) $(srcdir)/$@.in >$@.tmp - $(AM_V_at)chmod a-w $@.tmp - $(AM_V_at)mv $@.tmp $@ - -all-am: $(OURSCRIPTS) - -bacman: $(srcdir)/bacman.sh.in -checkupdates: $(srcdir)/checkupdates.sh.in -paccache: $(srcdir)/paccache.sh.in $(top_srcdir)/scripts/library/parseopts.sh $(top_srcdir)/scripts/library/size_to_human.sh -pacdiff: $(srcdir)/pacdiff.sh.in -paclist: $(srcdir)/paclist.sh.in -paclog-pkglist: $(srcdir)/paclog-pkglist.sh.in -pacscripts: $(srcdir)/pacscripts.sh.in -pacsearch: $(srcdir)/pacsearch.in -rankmirrors: $(srcdir)/rankmirrors.sh.in -updpkgsums: $(srcdir)/updpkgsums.sh.in - -# vim:set noet: |