This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from sys import argv, stdout | |
from os import system, remove, path | |
from urlparse import urlparse | |
import re | |
import dfu | |
import ssl | |
import math | |
import json | |
import getopt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET( ${PROJECT_NAME}_SOURCES | |
main.cpp | |
) | |
#main.x depends on main.cpp (is generated based on main.cpp) | |
#main.o depends on main.cpp and main.x (main.x is included in main.cpp) | |
#So if main.cpp changes, first run the tool to create main.x, | |
#then run cc to create main.o from main.cpp and main.x | |
ADD_CUSTOM_COMMAND( | |
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create repository foundation-git | |
end repository | |
match /foundation/trunk/ | |
repository foundation-git | |
branch master | |
end match | |
match /foundation/branches/([^/]+)/ | |
repository foundation-git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os, subprocess | |
def change_identity(uid, gid): | |
def func(): | |
os.setgid(uid) | |
os.setuid(gid) | |
return func | |
cmd = ['uname', '-a'] |