| OLD | NEW |
| 1 # Copyright 2009, Google Inc. | 1 # Copyright 2009, Google Inc. |
| 2 # All rights reserved. | 2 # All rights reserved. |
| 3 # | 3 # |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 """dir=$$(dirname $TARGET) && \ | 109 """dir=$$(dirname $TARGET) && \ |
| 110 rm -Rf $$dir && \ | 110 rm -Rf $$dir && \ |
| 111 mkdir -p $$dir && \ | 111 mkdir -p $$dir && \ |
| 112 cp $SOURCES $$dir""") | 112 cp $SOURCES $$dir""") |
| 113 env.Depends(targets, copied_debian_files_paths) | 113 env.Depends(targets, copied_debian_files_paths) |
| 114 # TODO(tschmelcher): Change this to sign the package for Google builds once | 114 # TODO(tschmelcher): Change this to sign the package for Google builds once |
| 115 # we start putting out Linux releases. | 115 # we start putting out Linux releases. |
| 116 env.Command(targets, None, | 116 env.Command(targets, None, |
| 117 """dir=$OBJ_ROOT/installer/linux/""" + deb_build_tree + """ && \ | 117 """dir=$OBJ_ROOT/installer/linux/""" + deb_build_tree + """ && \ |
| 118 cd $$dir && \ | 118 cd $$dir && \ |
| 119 dpkg-buildpackage -b -uc -aamd64 && \ | 119 dpkg-buildpackage -b -uc -aamd64 -D && \ |
| 120 cd $$OLDPWD && \ | 120 cd $$OLDPWD && \ |
| 121 mv $$dir/../""" + package_file_name + """.deb \ | 121 mv $$dir/../""" + package_file_name + """.deb \ |
| 122 $$(dirname $TARGET) && \ | 122 $$(dirname $TARGET) && \ |
| 123 mv $$dir/../""" + package_file_name + """.changes \ | 123 mv $$dir/../""" + package_file_name + """.changes \ |
| 124 $$(dirname $TARGET)""") | 124 $$(dirname $TARGET)""") |
| 125 return targets | 125 return targets |
| 126 | 126 |
| 127 | 127 |
| 128 BuildDebianPackage(["debian_amd64/changelog", | 128 BuildDebianPackage(["debian_amd64/changelog", |
| 129 "debian_amd64/control", | 129 "debian_amd64/control", |
| (...skipping 12 matching lines...) Expand all Loading... |
| 142 ], | 142 ], |
| 143 output_dir='$ARTIFACTS_DIR') | 143 output_dir='$ARTIFACTS_DIR') |
| 144 | 144 |
| 145 # TODO(tschmelcher): Also build an i386 deb. | 145 # TODO(tschmelcher): Also build an i386 deb. |
| 146 | 146 |
| 147 else: | 147 else: |
| 148 print('dpkg-buildpackage not found in PATH; Debian packages will not be ' | 148 print('dpkg-buildpackage not found in PATH; Debian packages will not be ' |
| 149 'built.'); | 149 'built.'); |
| 150 | 150 |
| 151 # TODO(tschmelcher): Also build an RPM and a tgz. | 151 # TODO(tschmelcher): Also build an RPM and a tgz. |
| OLD | NEW |