From d7e8f3d262be12e8128c9cfd2da87cdd4b4d164f Mon Sep 17 00:00:00 2001 From: rudson Date: Tue, 14 Aug 2007 19:19:06 +0000 Subject: createpkg-1.1.3: salva .slack-required no diretório de binários MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@414 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/createpkg | 11 ++++++++--- trunk/src/mkbuild | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/trunk/src/createpkg b/trunk/src/createpkg index 5b303fe..4af0d55 100644 --- a/trunk/src/createpkg +++ b/trunk/src/createpkg @@ -31,7 +31,7 @@ # Createpkg functions #--------------------------------------------------- -CREATEPKG_VERSION="1.1.2" +CREATEPKG_VERSION="1.1.3" function error_codes { @@ -498,8 +498,13 @@ PKG_NAME="`ls -1 -c $MAKEPKG_REPOS/$PACKAGE-*-*-*.tgz | head -n 1 | xargs basena # Remove old packages from repository tree [ $REMOVE_OLD_PACKAGE -eq $on ] && rm $NEW_REPOS/$PACKAGE-*-*-*.tgz 2>/dev/null -# Move package to SlackBuilds-like tree -[ $MOVE_BIN_PACKAGE -eq $on ] && mv $MAKEPKG_REPOS/$PKG_NAME $NEW_REPOS/ +# Move package and slack-required to SlackBuilds-like tree +if [ $MOVE_BIN_PACKAGE -eq $on ] then + mv $MAKEPKG_REPOS/$PKG_NAME $NEW_REPOS/ + [ ! -z "$SLACK_REQUIRED" ] && cp $SLACK_REQUIRED $NEW_REPOS/$PKG_NAME.slack-required +else + [ ! -z "$SLACK_REQUIRED" ] && cp $SLACK_REQUIRED $MAKEPKG_REPOS/$PKG_NAME.slack-required +fi # Install package if [ "$INSTALL" -eq $on ]; then diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild index d02dbbd..8dbd1c7 100755 --- a/trunk/src/mkbuild +++ b/trunk/src/mkbuild @@ -461,7 +461,7 @@ function commit_slackbuild { # Get SlackBuild path in slackbuild local tree if [ -z $SLACKBUILD_PATH ]; then - SLACKBUILD_PATH=`find $SLACKBUILDS_DIR -name $SLACKBUILD | xargs dirname` + SLACKBUILD_PATH=`find $SLACKBUILDS_DIR -name $SLACKBUILD | xargs dirname` 2>/dev/null fi # Get SlackBuild path in gentoo-portage tree -- cgit v1.2.3