From c3876845b223c9ced64582fb5cf3e9efc687eaa2 Mon Sep 17 00:00:00 2001
From: Andrew Fyfe <andrew@neptune-one.net>
Date: Wed, 11 Apr 2007 20:35:29 +0100
Subject: fix existing autotools in scripts/*

	- Remove scripts/makepkg on 'make distclean'
	- scripts/makepkg.in: set myver on ./configure

Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
---
 scripts/Makefile.am | 10 +++++++++-
 scripts/makepkg.in  |  2 +-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 57baee49..3e81b8cc 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -13,6 +13,14 @@ bin_SCRIPTS = \
 	repo-remove \
 	updatesync
 
-EXTRA_DIST = $(bin_SCRIPTS)
+EXTRA_DIST = abs \
+	     gensync \
+	     makepkg.in \
+	     makeworld \
+	     pacman-optimize \
+	     rankmirrors \
+	     repo-add \
+	     repo-remove \
+	     updatesync
 
 abs gensync makepkg makeworld pacman-optimize rankmirrors repo-add repo-remove re-pacman updatesync:
diff --git a/scripts/makepkg.in b/scripts/makepkg.in
index 3e1be96e..5c0bc591 100755
--- a/scripts/makepkg.in
+++ b/scripts/makepkg.in
@@ -33,7 +33,7 @@ export TEXTDOMAIN
 TEXTDOMAINDIR='@LOCALEDIR@'
 export TEXTDOMAINDIR
 
-myver='3.0.0'
+myver='@PACKAGE_VERSION@'
 startdir=$(pwd)
 
 # Only use ABSROOT if we haven't been passed a SRCROOT on the command line.
-- 
cgit v1.2.3-70-g09d2