git2talimat_calismasi
This commit is contained in:
		
							parent
							
								
									33d9bbf857
								
							
						
					
					
						commit
						00ada654ac
					
				
					 2 changed files with 24 additions and 0 deletions
				
			
		
							
								
								
									
										18
									
								
								ayarlar/git-talimat
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								ayarlar/git-talimat
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,18 @@
 | 
				
			||||||
 | 
					# Description: @desc@
 | 
				
			||||||
 | 
					# URL: @url@
 | 
				
			||||||
 | 
					# packager: @packager@
 | 
				
			||||||
 | 
					# Depends on : @depends@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					name=@name@
 | 
				
			||||||
 | 
					version=@version@
 | 
				
			||||||
 | 
					release=1
 | 
				
			||||||
 | 
					source=(https://github.com/@hesap@/$name/archive/$version.tar.gz)
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					build () {
 | 
				
			||||||
 | 
					  mv $DERLEME_KAYNAKDIZIN/$version.tar.gz $DERLEME_KAYNAKDIZIN/$name-$version.tar.gz
 | 
				
			||||||
 | 
					  cd $name-$version
 | 
				
			||||||
 | 
					  ./autogen.sh
 | 
				
			||||||
 | 
					  ./configure --prefix=/usr
 | 
				
			||||||
 | 
					  make
 | 
				
			||||||
 | 
					  make DESTDIR=$PKG install
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										6
									
								
								bin/git2talimat.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										6
									
								
								bin/git2talimat.sh
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
					@ -0,0 +1,6 @@
 | 
				
			||||||
 | 
					account="$1"
 | 
				
			||||||
 | 
					name="$2"
 | 
				
			||||||
 | 
					file="$name.html"
 | 
				
			||||||
 | 
					curl -k https://github.com/"$account/$name" > "$file" 
 | 
				
			||||||
 | 
					desc=`sed -n 's|[^<]*<span itemprop="about">\([^<]*\)</span>[^<]*|\1\n|gp' $file`
 | 
				
			||||||
 | 
					echo "# Description:$desc"
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue