## Process this file with automake to produce Makefile.in ## Copyright: Sámediggi/Divvun/UiT ## Licence: GPL v3+ .PHONY: \ checkout \ checkout-all \ checkout-langs \ checkout-keyboards \ commit \ commit-langs \ commit-keyboards \ ignore-langs \ ignore-keyboards \ svnignores \ svnstatus \ svnstatus-all \ svnstatus-langs \ svnstatus-keyboards # Variables: ALL_LANGS:=$(shell find . ! -name . -prune -name 'lang-*' -type d | sort) ALL_KBRDS:=$(shell find . ! -name . -prune -name 'keyboard-*' -type d | sort) ALL_DIRS:=$(shell find . ! -name . -prune -type d | sort | egrep -v '(autom4t|build|bygg)' ) GIELLA_CORE:=@GIELLA_CORE@ # Default repo regex: REPOREGEX=^lang- checkout-langs: REPOREGEX=^lang- checkout-langs: checkout checkout-keyboards: REPOREGEX=^keyboard- checkout-keyboards: checkout checkout-all: REPOREGEX=. checkout-all: checkout checkout: for i in $$(@GUT@ show repositories -o giellalt -r $(REPOREGEX) 2>/dev/null \ | grep 'RemoteRepo' | cut -d',' -f4 | cut -d' ' -f3 | cut -d'"' -f2 ) ; \ do \ dirname=$$(echo $$i | rev | cut -d'/' -f1 | rev) ; \ repourl=$$i.git/trunk ; \ echo "Checking out: $$dirname" ; \ svn checkout $$repourl $$dirname ; \ done # " Reset syntax colouring # Default: IGNORELANGS:=$(ALL_LANGS) ignore-langs: IGNORELANGS:=$(ALL_LANGS) ignore-langs: svnignores ignore-keyboards: IGNORELANGS:=$(ALL_KBRDS) ignore-keyboards: svnignores svnignores: for ll in $(IGNORELANGS) ; do \ iso=$$(echo $$ll | cut -d'-' -f2); \ dirtype=$$(echo $$ll | cut -d'-' -f1 | cut -d'/' -f2); \ Language=$$( $(GIELLA_CORE)/scripts/iso639-to-name.sh $$iso); \ cd $(abs_top_srcdir) ; \ echo "- setting svn:ignore's for $$iso - $$Language" ; \ echo "$(GIELLA_CORE)/devtools/set-svn-ignores-$${dirtype}.sh $(abs_top_srcdir)/$$ll" ; \ echo ; \ if test -d $$ll ; then \ cd $$ll ; $(GIELLA_CORE)/devtools/set-svn-ignores-$${dirtype}.sh \ $(abs_top_srcdir)/$$ll ; \ echo "----"; \ fi \ done svnstatus-langs: STATUSDIRS:=$(ALL_LANGS) svnstatus-langs: svnstatus svnstatus-keyboards: STATUSDIRS:=$(ALL_KBRDS) svnstatus-keyboards: svnstatus svnstatus-all: STATUSDIRS:=$(ALL_DIRS) svnstatus-all: svnstatus svnstatus: @echo "STATUSDIRS: $(STATUSDIRS)" $(AM_V_GEN)for ll in $(STATUSDIRS) ; do \ echo "Status for $$ll" ;\ svn status $$ll ;\ done # Defaults: COMMITDIRS:=$(ALL_LANGS) MESSAGE= commit-langs: COMMITDIRS:=$(ALL_LANGS) commit-langs: commit commit-keyboards: COMMITDIRS:=$(ALL_KBRDS) commit-keyboards: commit commit: if test "x$(MESSAGE)" = "x" ; then \ echo "ERROR: There is no commit message." ; \ echo "Please specify using: make commit MESSAGE='Some message.'" ; \ exit 1 ; \ fi for ll in $(COMMITDIRS) ; do \ cd $(abs_top_srcdir) ; \ echo "- committing in $$ll" ; \ if test -d $$ll ; then \ cd $$ll && svn ci -m "$(MESSAGE)" ; \ fi \ done