Rename from gbuild to hacktree
This commit is contained in:
parent
e91cfde6c9
commit
73a4b1a5f1
|
|
@ -1,9 +1,9 @@
|
||||||
bin_SCRIPTS += gbuild
|
bin_SCRIPTS += hacktree
|
||||||
|
|
||||||
SUBSTITUTIONS = sed -e s,@libdir\@,$(libdir), -e s,@datarootdir\@,$(datarootdir), -e s,@PYTHON\@,$(PYTHON),
|
SUBSTITUTIONS = sed -e s,@libdir\@,$(libdir), -e s,@datarootdir\@,$(datarootdir), -e s,@PYTHON\@,$(PYTHON),
|
||||||
|
|
||||||
gbuild: src/gbuild.in Makefile
|
hacktree: src/hacktree.in Makefile
|
||||||
$(AM_V_GEN) $(SUBSTITUTIONS) $< > $@.tmp && mv $@.tmp $@
|
$(AM_V_GEN) $(SUBSTITUTIONS) $< > $@.tmp && mv $@.tmp $@
|
||||||
@chmod a+x $@
|
@chmod a+x $@
|
||||||
|
|
||||||
CLEANFILES += gbuild
|
CLEANFILES += hacktree
|
||||||
|
|
@ -8,4 +8,4 @@ noinst_LTLIBRARIES =
|
||||||
noinst_PROGRAMS =
|
noinst_PROGRAMS =
|
||||||
|
|
||||||
|
|
||||||
include Makefile-gbuild.am
|
include Makefile-hacktree.am
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,8 @@ PKG_PROG_PKG_CONFIG
|
||||||
|
|
||||||
PKG_CHECK_MODULES(GIO_UNIX, [gio-unix-2.0])
|
PKG_CHECK_MODULES(GIO_UNIX, [gio-unix-2.0])
|
||||||
|
|
||||||
|
AM_PATH_PYTHON
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
])
|
])
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
echo test
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
#!@PYTHON@
|
||||||
|
# -*- Mode: Python -*-
|
||||||
|
# Copyright (C) 2011 Colin Walters <walters@verbum.org>
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU General Public License
|
||||||
|
# as published by the Free Software Foundation; either version 2
|
||||||
|
# of the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
|
# 02110-1301, USA.
|
||||||
|
#
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
import re
|
||||||
|
|
||||||
|
import __builtin__
|
||||||
|
|
||||||
|
__builtin__.__dict__['DATADIR'] = "@datarootdir@"
|
||||||
|
|
||||||
|
path = os.path.join('@libdir@', 'hacktree')
|
||||||
|
sys.path.insert(0, path)
|
||||||
|
|
||||||
Loading…
Reference in New Issue