Skip to content

Commit

Permalink
BINARIES: ubuntu-22.04 (LARGE COMMIT)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmasthay committed May 29, 2024
1 parent 8d38c80 commit c6c8bb4
Show file tree
Hide file tree
Showing 10,149 changed files with 621,706 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
72 changes: 72 additions & 0 deletions dist/ubuntu-22.04/bin/cscons
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
#! /usr/bin/env python

if __name__ == "__main__":
import rsf.cluster
import sys,os,time

name = 'SConstruct'

if '-c' in sys.argv:
import os
if os.path.exists('pbs') and os.path.isdir('pbs'):
import shutil
print 'Removing... pbs directory'
shutil.rmtree('pbs')
if os.path.exists('HISTORY.txt'):
os.remove('HISTORY.txt')
print 'Cleaned. Run scons -c or use trashrsf to remove files.'
sys.exit(0)
elif 'get' in sys.argv:
cwd = os.getcwd()
localdir = os.environ.get('RSF_LOCAL_WORK',None)
clusterdir = os.environ.get('RSF_CLUSTER_WORK',None)
cluster = os.environ.get('RSF_CLUSTER',None)
path = cwd.split(localdir)
getdir = os.path.join(clusterdir,path[1].lstrip('/'))
print 'Will try to get this directory: ', getdir
import subprocess as sp
print 'Getting HH files'
p = sp.Popen('scp %s:%s/*.hh .' % (cluster,getdir),shell=True)
p.wait()
print 'Getting Figures'
p = sp.Popen('scp -r %s:%s/Fig .' % (cluster,getdir),shell=True)
p.wait()
print 'Getting history'
p = sp.Popen('scp -r %s:%s/HISTORY.txt .' % (cluster,getdir), shell=True)
p.wait()
elif 'lock' in sys.argv:
import re
figs = os.environ.get('RSFFIGS',None)
if not figs: raise Exception('RSFFIGS not set?')
figdir = re.sub('.*\/((?:[^\/]+)\/(?:[^\/]+)\/(?:[^\/]+))$',
figs+'/\\1',os.getcwd())
print 'Putting Figures in: ', figdir
try:
import shutil
if not os.path.exists(figdir):
os.makedirs(figdir)
print 'Individually copying...'
import glob
files = glob.glob('Fig/*.vpl')
for file in files:
print 'Copying... %s' % file
shutil.copy2(file,figdir)
if os.path.exists('HISTORY.txt'):
shutil.copy2('HISTORY.txt',figdir)
except:
print 'FAILURE to copy'
else:
if '-f' in sys.argv:
index = sys.argv.index('-f')
filename = sys.argv[index+1]
if os.path.exists(filename):
name = filename
else:
raise Exception('%s not found.' % filename)

rsf.cluster.CSCONS = True
execfile(name)

history = open('HISTORY.txt','w')
history.write('Executed - %s, on %s\n' % (time.strftime('%H:%M %m/%d/%Y',time.localtime()),os.uname()[1]))
history.close()
10 changes: 10 additions & 0 deletions dist/ubuntu-22.04/bin/gdpen
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env python
import sys

sys.stderr.write('''
%s is not installed.
Check $RSFROOT/share/madagascar/etc/config.py for GD
and reinstall if necessary.
Possible missing packages: libgd2-noxpm-dev
''' % sys.argv[0])
sys.exit(1)
10 changes: 10 additions & 0 deletions dist/ubuntu-22.04/bin/jpegpen
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env python
import sys

sys.stderr.write('''
%s is not installed.
Check $RSFROOT/share/madagascar/etc/config.py for JPEG
and reinstall if necessary.
Possible missing packages: libjpeg-devel
''' % sys.argv[0])
sys.exit(1)
Loading

0 comments on commit c6c8bb4

Please sign in to comment.