diff options
author | George McCollister <george.mccollister@gmail.com> | 2011-04-28 16:13:27 -0500 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-05-12 09:03:05 +0200 |
commit | 6904e50d8bb566b4af24df2cd1b54eb04a4bf161 (patch) | |
tree | 6900a99e8c80a70269de1e0b52f6877d0478e43b | |
parent | 8889b0a49241add542a26b09f5e188a00f46a8a6 (diff) | |
download | ptxdist-6904e50d8bb566b4af24df2cd1b54eb04a4bf161.tar.gz ptxdist-6904e50d8bb566b4af24df2cd1b54eb04a4bf161.tar.xz |
make ptxd_make_xpkg more generic
Change name of pkg_ipkg_control_dir to pkg_xpkg_control_dir.
Change name of pkg_ipkg_control to pkg_xpkg_control.
Signed-off-by: George McCollister <george.mccollister@gmail.com>
[mol: added on missing replacement]
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | scripts/lib/ptxd_make_ipkg_common.sh | 7 | ||||
-rw-r--r-- | scripts/lib/ptxd_make_ipkg_finish.sh | 3 | ||||
-rw-r--r-- | scripts/lib/ptxd_make_xpkg_fixup.sh | 3 | ||||
-rw-r--r-- | scripts/lib/ptxd_make_xpkg_prepare.sh | 7 |
4 files changed, 12 insertions, 8 deletions
diff --git a/scripts/lib/ptxd_make_ipkg_common.sh b/scripts/lib/ptxd_make_ipkg_common.sh index b23fcff71..450b4abb8 100644 --- a/scripts/lib/ptxd_make_ipkg_common.sh +++ b/scripts/lib/ptxd_make_ipkg_common.sh @@ -1,6 +1,7 @@ #!/bin/bash # # Copyright (C) 2009 by Marc Kleine-Budde <mkl@pengutronix.de> +# 2011 by George McCollister <george.mccollister@gmail.com> # # See CREDITS for details about who has contributed to this project. # @@ -14,8 +15,8 @@ # ptxd_make_ipkg_init() { pkg_ipkg_tmp="${pkg_xpkg_tmp}/ipkg" - pkg_ipkg_control_dir="${pkg_ipkg_tmp}/CONTROL" - pkg_ipkg_control="${pkg_ipkg_control_dir}/control" + pkg_xpkg_control_dir="${pkg_ipkg_tmp}/CONTROL" + pkg_xpkg_control="${pkg_xpkg_control_dir}/control" pkg_xpkg_conffiles="${pkg_xpkg_control_dir}/conffiles" } -export -f ptxd_make_ipkg_init
\ No newline at end of file +export -f ptxd_make_ipkg_init diff --git a/scripts/lib/ptxd_make_ipkg_finish.sh b/scripts/lib/ptxd_make_ipkg_finish.sh index 8f91916c3..fe9195483 100644 --- a/scripts/lib/ptxd_make_ipkg_finish.sh +++ b/scripts/lib/ptxd_make_ipkg_finish.sh @@ -2,6 +2,7 @@ # # Copyright (C) 2005, 2006, 2007 Robert Schwebel <r.schwebel@pengutronix.de> # 2008, 2009, 2010 by Marc Kleine-Budde <mkl@pengutronix.de> +# 2011 by George McCollister <george.mccollister@gmail.com> # # See CREDITS for details about who has contributed to this project. # @@ -30,7 +31,7 @@ ptxd_make_ipkg_finish() { dep="${pkg_xpkg_deps[*]}" dep="${dep// /, }" - sed -i -e "s:@DEPENDS@:${dep}:g" "${pkg_ipkg_control}" || return + sed -i -e "s:@DEPENDS@:${dep}:g" "${pkg_xpkg_control}" || return local -a fake_args if [ -f "${pkg_fake_env}" ]; then diff --git a/scripts/lib/ptxd_make_xpkg_fixup.sh b/scripts/lib/ptxd_make_xpkg_fixup.sh index 42cebdaf2..a698e89a6 100644 --- a/scripts/lib/ptxd_make_xpkg_fixup.sh +++ b/scripts/lib/ptxd_make_xpkg_fixup.sh @@ -2,6 +2,7 @@ # # Copyright (C) 2005, 2006, 2007 Robert Schwebel <r.schwebel@pengutronix.de> # 2008, 2009, 2010 by Marc Kleine-Budde <mkl@pengutronix.de> +# 2011 by George McCollister <george.mccollister@gmail.com> # # See CREDITS for details about who has contributed to this project. # @@ -25,7 +26,7 @@ ptxd_make_xpkg_fixup() { esac echo -n "install_fixup: @${pkg_xpkg_fixup_from}@ -> ${pkg_xpkg_fixup_to} ... " - sed -i -e "s,@$pkg_xpkg_fixup_from@,$pkg_xpkg_fixup_to,g" "${pkg_ipkg_control}" || return + sed -i -e "s,@$pkg_xpkg_fixup_from@,$pkg_xpkg_fixup_to,g" "${pkg_xpkg_control}" || return echo "done." } diff --git a/scripts/lib/ptxd_make_xpkg_prepare.sh b/scripts/lib/ptxd_make_xpkg_prepare.sh index 5c7228534..7a14c8041 100644 --- a/scripts/lib/ptxd_make_xpkg_prepare.sh +++ b/scripts/lib/ptxd_make_xpkg_prepare.sh @@ -2,6 +2,7 @@ # # Copyright (C) 2005, 2006, 2007 Robert Schwebel <r.schwebel@pengutronix.de> # 2008, 2009, 2010 by Marc Kleine-Budde <mkl@pengutronix.de> +# 2011 by George McCollister <george.mccollister@gmail.com> # # See CREDITS for details about who has contributed to this project. # @@ -21,7 +22,7 @@ ptxd_make_xpkg_prepare() { "${pkg_xpkg_cmds}" \ "${pkg_xpkg_perms}" \ "${pkg_xpkg_install_deps}" && - mkdir -p -- "${pkg_ipkg_control_dir}" && + mkdir -p -- "${pkg_xpkg_control_dir}" && touch "${pkg_xpkg_cmds}" || return # @@ -36,7 +37,7 @@ install_init: @VERSION@ -> ${pkg_xpkg_version}" PACKAGE="${pkg_xpkg}" \ VERSION="${pkg_xpkg_version}" \ ptxd_replace_magic "${PTXDIST_TOPDIR}/config/xpkg/ipkg.control" > \ - "${pkg_ipkg_control}" || return + "${pkg_xpkg_control}" || return local script for script in preinst postinst prerm postrm; do @@ -45,7 +46,7 @@ install_init: @VERSION@ -> ${pkg_xpkg_version}" if ptxd_in_path PTXDIST_PATH_RULES "${pkg_xpkg}.${script}"; then install -m 0755 \ -D "${ptxd_reply}" \ - "${pkg_ipkg_control_dir}/${script}" || return + "${pkg_xpkg_control_dir}/${script}" || return echo "packaging: '$(ptxd_print_path "${ptxd_reply}")'" |