Commit c775ed446e6c5609689a961a26502a5f35f11d81

Authored by knodlseder
1 parent 1724db08

add cspull and create only symbolic links in bin directory

Showing 1 changed file with 8 additions and 8 deletions
scripts/Makefile.am
1 1 ## Process this file with automake to produce Makefile.in
2 2  
3   -# Scripts to be distributed in bindir
4   -binscripts = cssens
  3 +# Scripts for which symbolic links should be created in bindir
  4 +binscripts = cspull cssens
5 5  
6 6 # Scripts to be distributed in pythondir
7   -pythonscripts = obsutils.py
  7 +pythonscripts = cspull.py cssens.py obsutils.py
8 8  
9 9 # Distribute scripts
10   -EXTRA_DIST = $(binscripts) $(pythonscripts)
11   -binscriptsdir = $(bindir)
12   -binscripts_DATA = $(binscripts)
  10 +EXTRA_DIST = $(pythonscripts)
13 11 pythonscriptsdir = $(pythondir)
14 12 pythonscripts_DATA = $(pythonscripts)
15 13  
16   -# Add hook rule to make binscripts executable
  14 +# Add hook rule to create symbolic links for cscripts
17 15 install-data-hook:
18   - @list='$(binscripts_DATA)';\
  16 + @list='$(binscripts)';\
19 17 for p in $$list; do \
  18 + ln -s "$(DESTDIR)$(pythondir)/$$p.py" "$(DESTDIR)$(bindir)/$$p"; \
20 19 if test -f "$$p"; then chmod +x "$(DESTDIR)$(binscriptsdir)/$$p"; fi; \
  20 + chmod +x "$(DESTDIR)$(pythondir)/$$p.py"; \
21 21 done
... ...