2
# Author: Jamie Strandboge <jamie@ubuntu.com>
3
# Copyright (C) 2013-2014 Canonical Ltd.
5
# This script is distributed under the terms and conditions of the GNU General
6
# Public License, Version 3 or later. See http://www.gnu.org/copyleft/gpl.html
12
Usage: make-new-version.sh <previous> <new>
17
if [ -z "$previous_version" ]; then
22
if [ -z "$new_version" ]; then
27
for i in policygroups templates ; do
28
mkdir data/$i/ubuntu/"$new_version"
29
cd data/$i/ubuntu/"$new_version"
30
for j in ../"$previous_version"/* ; do
31
ln -s $j `basename $j`
33
if [ "$i" = "templates" ]; then
34
if [ ! -e "ubuntu-sdk" ]; then
35
echo "WARN: could not find '$i/ubuntu/$new_version/ubuntu-sdk'"
36
echo " Skipping setting up 'default' symlink."
39
ln -s ubuntu-sdk default