- default configuration making createpkg repository integrated with simplaret
- new repositories
- mkbuild:
- - added --edit command line option
+ - added --edit command line options, among others
- code cleanup
- all previous "commit" functions and command line options changed to "submit" as they
don't really commit files into the svn repository
- config() on postinstall_script now accepting .dist and .sample config file extensions
- added git_source section
- createpkg:
- - new options --import, --status, --update and --commit to manage subversion repository
+ - new options --import, --status, --update and --commit to manage subversion repository, among others
- subversion integration
- minor changes
- renamed config parameter CREATE_ARCH to CREATEPKG_ARCH
import SlackBuild repository in a svn tree
${red}-ia${normal}, ${red}-i${normal}, ${red}--import-all${normal}, ${red}--import${normal}
import mkbuild and SlackBuild repositories in a svn tree
+ ${red}--status${normal}
+ print mkbuild and SlackBuild svn repositories status
${red}-h${normal}, ${red}--help${normal}
this help mesage
${red}-n${normal}, ${red}--new${normal} ${green}<mkbuild_name>${normal}
break # we need to break otherwise commit log message is evalued
;;
'-is'|'--import-slackbuilds')
- # Commit SlackBuild file
+ # Import SlackBuilds
ACTION="import_slackbuilds"
MKBUILD_NAME="${2//.mkbuild}.mkbuild"
break # we need to break otherwise specific arguments are evalued
;;
'-im'|'--import-mkbuilds')
- # import mkbuild file
+ # Import mkbuilds
ACTION="import_mkbuilds"
MKBUILD_NAME="${2//.mkbuild}.mkbuild"
break # we need to break otherwise specific arguments are evalued
;;
'-ia'|'-i'|'--import-all'|'--import')
- # Commit SlackBuild and mkbuild file
+ # Import SlackBuilds and mkbuilds
ACTION="import_all"
MKBUILD_NAME="${2//.mkbuild}.mkbuild"
break # we need to break otherwise specific arguments are evalued
;;
+ '--status')
+ # Repository status
+ ACTION="status"
+ break # we need to break otherwise specific arguments are evalued
+ ;;
'-um'|'--update-manifest')
ACTION="update_manifest"
MKBUILD_NAME="${2//.mkbuild}.mkbuild"
}
+function repository_status {
+
+ local cwd
+
+ if [ -d "$MKBUILDS_DIR/.svn" ]; then
+ echo "Status of $MKBUILDS_DIR."
+ cwd="`pwd`"
+ cd $MKBUILDS_DIR && su_svn status
+ cd $cwd
+ fi
+
+ if [ -d "$SLACKBUILDS_DIR/.svn" ]; then
+ cwd="`pwd`"
+ echo "Status of $SLACKBUILDS_DIR."
+ cd $SLACKBUILDS_DIR && su_svn status
+ cd $cwd
+ fi
+
+ exit 0
+
+}
+
# ----------------------------------------------------------------
# general functions
# ----------------------------------------------------------------
'search')
search_mkbuild -i
;;
+ 'status')
+ repository_status
+ ;;
'edit')
edit_mkbuild
;;