source: main/trunk/package-kits/linux/pkg.in/segments/src@ 29481

Last change on this file since 29481 was 29481, checked in by Jeremy Symon, 9 years ago

Working on a script for generating build scripts for different packages and systems with minimal code duplication and human intervention. Currently should generate working Makefiles, but doesn't handle the package managers yet. Since both RPM and APT package managers rely on Makefiles, I will change the pacman scripts to also use Makefiles, and see if all the package manager scripts can be automatically generated (at least the metadata)

File size: 389 bytes
Line 
1svn:
2 @echo "Getting latest source"
3 svn co %SVN_LOCATION% svn
4
5src: svn
6 $(eval svnver := $(shell cd svn && svnversion -c | grep -o '[[:digit:]:]*'))
7 $(eval srcver := $(shell if test -d src; then cd src && svnversion -c | grep -o '[[:digit:]:]*'; else echo "nope"; fi))
8 if test $(svnver) != $(srcver); then \
9 $(MAKE) clean ; \
10 echo "Making copy of source" ; \
11 cp -rT svn src ; \
12 fi
Note: See TracBrowser for help on using the repository browser.