Changeset 2253 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Env.pm
- Timestamp:
- Aug 30, 2017, 5:07:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Env.pm
r2252 r2253 76 76 77 77 if (! -f $ENV{'PBETC'}) { 78 pb_log(0, "No existing $ENV{'PBETC'} found, creating one as template\n"); 79 open(PBRC, "> $ENV{'PBETC'}") || die "Unable to create $ENV{'PBETC'}"; 80 print PBRC << "EOF"; 81 --- 78 if (! -f "$dir/.pbrc") { 79 pb_log(0, "No existing $ENV{'PBETC'} found, creating one as template\n"); 80 open(PBRC, "> $ENV{'PBETC'}") || die "Unable to create $ENV{'PBETC'}"; 81 print PBRC << "EOF"; 82 --- %YAML 1.0 82 83 # 83 84 # Define for each project the URL of its pbconf repository 84 85 # No default option allowed here as they need to be all different 85 86 # 86 #pbconfurl example = svn+ssh://svn.example.org/svn/pb/projects/example/pbconf 87 #pbconfurl pb = svn+ssh://svn.project-builder.org/mondo/svn/pb/pbconf 88 87 # pbconfurl: 88 # example: svn+ssh://svn.example.org/svn/pb/projects/example/pbconf 89 # pbconfurl: 90 # pb: svn+ssh://svn.project-builder.org/mondo/svn/pb/pbconf 91 # 89 92 # Under that dir will take place everything related to pb 90 93 # If you want to use VMs/chroot/..., then use \$ENV{'HOME'} to make it portable 91 94 # to your VMs/chroot/... 92 95 # if not defined then /var/cache 93 #pbdefdir default = \$ENV{'HOME'}/pb/projects 94 #pbdefdir pb = \$ENV{'HOME'} 95 96 # pbdefdir: 97 # default: \$ENV{'HOME'}/pb/projects 98 # pbdefdir: 99 # pb: \$ENV{'HOME'} 100 # 96 101 # If not defined, pbconfdir is under pbdefdir/pbproj/pbconf 97 #pbconfdir pb = \$ENV{'HOME'}/pb/pbconf 98 102 # pbconfdir: 103 # pb: \$ENV{'HOME'}/pb/pbconf 104 # 99 105 # If not defined, pbprojdir is under pbdefdir/pbproj 100 106 # Only defined if we have access to the dev of the project 101 #pbprojdir example = \$ENV{'HOME'}/example/svn 102 107 # pbprojdir: 108 # example: \$ENV{'HOME'}/example/svn 109 # 103 110 # We have commit acces to these 104 #pburl example = cvs+ssh://user\@example.cvs.sourceforge.net:/cvsroot/example 105 #pburl pb = svn+ssh://svn.project-builder.org/mondo/svn/pb 106 111 # pburl: 112 # example: cvs+ssh://user\@example.cvs.sourceforge.net:/cvsroot/example 113 # pburl: 114 # pb: svn+ssh://svn.project-builder.org/mondo/svn/pb 115 # 107 116 # I mask my real login on the ssh machines here 108 #sshlogin example = user 109 117 # sshlogin: 118 # example: user 119 # 110 120 # where to find Build System infos: 111 #vmpath default = /home/qemu 112 #vepath default = /home/rpmbootstrap 113 #rmpath default = /home/remote 114 121 # vmpath: 122 # default: /home/qemu 123 # vepath: 124 # default: /home/rpmbootstrap 125 # rmpath: 126 # default: /home/remote 127 # 115 128 # Overwrite generic setup 116 #vmport pb = 2223 117 #vmport example = 2224 118 129 # vmport: 130 # pb: 2223 131 # vmport: 132 # example: 2224 133 # 119 134 # Info on who is packaging 120 #pbpackager default = William Porte <bill\@porte.org> 121 #pbpassphrase default = TheScretePassPhrase 122 #pbpassfile default = /home/williamporte/secret/passfile 123 EOF 135 # pbpackager: 136 # default: William Porte <bill\@porte.org> 137 # pbpassphrase: 138 # default: TheScretePassPhrase 139 # pbpassfile: 140 # default: /home/williamporte/secret/passfile 141 EOF 142 } else { 143 pb_log(0, "Found an existing $dir/.pbrc converting it into $ENV{'PBETC'}\n"); 144 pb_conf_update_v0("$dir/.pbrc",$ENV{'PBETC'}); 124 145 } 146 } 125 147 126 148 # We only have one configuration file for now. … … 421 443 open(CONF,"> $ENV{'PBROOTDIR'}/$ENV{'PBPROJ'}.pb") || die "Unable to create $ENV{'PBROOTDIR'}/$ENV{'PBPROJ'}.pb"; 422 444 print CONF << "EOF"; 423 --- 445 --- YAML 1.0 424 446 # 425 447 # Project Builder configuration file … … 620 642 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/all.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/all.yml"; 621 643 print CONF << "EOF"; 622 --- 644 --- YAML 1.0 623 645 # 624 646 # \$Id\$ … … 692 714 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/rpm.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/rpm.yml"; 693 715 print CONF << "EOF"; 694 --- 716 --- YAML 1.0 695 717 # 696 718 # \$Id\$ … … 725 747 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/fedora.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/fedora.yml"; 726 748 print CONF << "EOF"; 727 --- 749 --- YAML 1.0 728 750 # 729 751 # \$Id\$ … … 756 778 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/fedora-$i.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/fedora-$i.yml"; 757 779 print CONF << "EOF"; 758 --- 780 --- YAML 1.0 759 781 # 760 782 # \$Id\$ … … 770 792 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/deb.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/deb.yml"; 771 793 print CONF << "EOF"; 772 --- 794 --- YAML 1.0 773 795 # 774 796 # \$Id\$ … … 799 821 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-3.1.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-3.1.yml"; 800 822 print CONF << "EOF"; 801 --- 823 --- YAML 1.0 802 824 # 803 825 # \$Id\$ … … 815 837 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-4.0.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-4.0.yml"; 816 838 print CONF << "EOF"; 817 --- 839 --- YAML 1.0 818 840 # 819 841 # \$Id\$ … … 831 853 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-5.0.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-5.0.yml"; 832 854 print CONF << "EOF"; 833 --- 855 --- YAML 1.0 834 856 # 835 857 # \$Id\$ … … 847 869 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-6.0.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-6.0.yml"; 848 870 print CONF << "EOF"; 849 --- 871 --- YAML 1.0 850 872 # 851 873 # \$Id\$ … … 863 885 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian.yml"; 864 886 print CONF << "EOF"; 865 --- 887 --- YAML 1.0 866 888 # 867 889 # \$Id\$ … … 880 902 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/$ubv") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/$ubv"; 881 903 print CONF << "EOF"; 882 --- 904 --- YAML 1.0 883 905 # 884 906 # \$Id\$ … … 898 920 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/$ubv") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/$ubv"; 899 921 print CONF << "EOF"; 900 --- 922 --- YAML 1.0 901 923 # 902 924 # \$Id\$ … … 916 938 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/$ubv") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/$ubv"; 917 939 print CONF << "EOF"; 918 --- 940 --- YAML 1.0 919 941 # 920 942 # \$Id\$ … … 935 957 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/$ubv") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/$ubv"; 936 958 print CONF << "EOF"; 937 --- 959 --- YAML 1.0 938 960 # 939 961 # \$Id\$ … … 952 974 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/md.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/md.yml"; 953 975 print CONF << "EOF"; 954 --- 976 --- YAML 1.0 955 977 # 956 978 # \$Id\$ … … 969 991 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/novell.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/novell.yml"; 970 992 print CONF << "EOF"; 971 --- 993 --- YAML 1.0 972 994 # 973 995 # \$Id\$
Note:
See TracChangeset
for help on using the changeset viewer.