#! /bin/sh # # change Anjuta C/C++ default configuration # D="/usr/share/anjuta/templates/minimal" echo "Working in $D/" cd "$D" || exit 0 # backup the original if not done already if [ ! -r anjuta.session.ORIG ]; then echo "Making backup copy of anjuta.session" cp -p anjuta.session anjuta.session.ORIG fi echo "Editing anjuta.session" sed -e "s;BuildArgs/Default=.*;BuildArgs/Default=--disable-silent-rules \ 'CFLAGS=-g -std=c11 -pedantic -Wall' 'CXXFLAGS=-g -std=c++17 -pedantic -Wall';" \ -e "s/Selected Configuration=.*/Selected Configuration=Default/" anjuta.session.ORIG > anjuta.session echo "Done."